Commit 2da569a2 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Simplify evaluating pipeline expressions

parent 890df1b1
...@@ -50,11 +50,7 @@ module Gitlab ...@@ -50,11 +50,7 @@ module Gitlab
end end
def evaluate def evaluate
if tokens.many? parse_tree.evaluate # evaluate(variables)
parse_tree.evaluate
else
parse_tree.evaluate.present?
end
end end
end end
end 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