summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-05-15 14:35:12 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-05-15 14:35:12 +0200
commitc1377c6cf0647cccd04bc6fb65d745a2e446f827 (patch)
tree7dfac8e720a4edb5c2a1bd76ffddc36c87913cdb /lib
parent9b213583937d73c79115a043b7733c76f79f5d3c (diff)
downloadgitlab-ce-c1377c6cf0647cccd04bc6fb65d745a2e446f827.tar.gz
Remove useless assignment in pattern lexeme
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/ci/pipeline/expression/lexeme/pattern.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/ci/pipeline/expression/lexeme/pattern.rb b/lib/gitlab/ci/pipeline/expression/lexeme/pattern.rb
index f7b12914249..62927441035 100644
--- a/lib/gitlab/ci/pipeline/expression/lexeme/pattern.rb
+++ b/lib/gitlab/ci/pipeline/expression/lexeme/pattern.rb
@@ -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