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

Simplify evaluating pipeline expressions

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