Commit 3938d1c3 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Robustify pipeline expressions nodes parser

parent df66e911
...@@ -12,7 +12,7 @@ module Gitlab ...@@ -12,7 +12,7 @@ module Gitlab
while token = @tokens.next while token = @tokens.next
case token.type case token.type
when :operator when :operator
token.build(@nodes.last, tree).tap do |node| token.build(@nodes.pop, tree).tap do |node|
@nodes.push(node) @nodes.push(node)
end end
when :value when :value
......
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