Disable CI variable complex expressions by default

This commit is contained in:
drew cimino 2019-06-12 18:50:42 -04:00 committed by Stan Hu
parent 0a70ba177e
commit cbb05dcad9
4 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ module Gitlab
private
def ci_variables_complex_expressions?
Feature.enabled?(:ci_variables_complex_expressions, default_enabled: true)
Feature.enabled?(:ci_variables_complex_expressions)
end
end
end

View File

@ -34,7 +34,7 @@ module Gitlab
end
def self.eager_matching_with_escape_characters?
Feature.enabled?(:ci_variables_complex_expressions, default_enabled: true)
Feature.enabled?(:ci_variables_complex_expressions)
end
end
end

View File

@ -73,7 +73,7 @@ module Gitlab
end
def available_lexemes
Feature.enabled?(:ci_variables_complex_expressions, default_enabled: true) ? NEW_LEXEMES : LEXEMES
Feature.enabled?(:ci_variables_complex_expressions) ? NEW_LEXEMES : LEXEMES
end
end
end

View File

@ -13,7 +13,7 @@ module Gitlab
end
def tree
if Feature.enabled?(:ci_variables_complex_expressions, default_enabled: true)
if Feature.enabled?(:ci_variables_complex_expressions)
rpn_parse_tree
else
reverse_descent_parse_tree