Commit c1377c6c authored by Grzegorz Bizon's avatar Grzegorz Bizon

Remove useless assignment in pattern lexeme

parent 9b213583
......@@ -13,7 +13,7 @@ module Gitlab
end
def evaluate(variables = {})
@regexp = Gitlab::UntrustedRegexp.new(@value)
Gitlab::UntrustedRegexp.new(@value)
rescue RegexpError
raise Expression::RuntimeError, 'Invalid regular expression!'
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment