From 2da569a2291922a2274a261d683f1570c7d60fb8 Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon <grzesiek.bizon@gmail.com> Date: Wed, 21 Feb 2018 14:15:20 +0100 Subject: [PATCH] Simplify evaluating pipeline expressions --- lib/gitlab/ci/pipeline/expression/statement.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/gitlab/ci/pipeline/expression/statement.rb b/lib/gitlab/ci/pipeline/expression/statement.rb index 5d37d3ff0b0..069e0ad91f7 100644 --- a/lib/gitlab/ci/pipeline/expression/statement.rb +++ b/lib/gitlab/ci/pipeline/expression/statement.rb @@ -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 -- 2.30.9