Commit fa2a5468 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Rename pipeline expressions token for checking equality

parent 7c6063dd
......@@ -2,18 +2,17 @@ module Gitlab
module Ci
module Pipeline
module Expression
class Equality < Expression::Token
class Equals < Expression::Token
PATTERN = /==/.freeze
def initialize(left, right)
@left = left
@right = right
end
def evaluate(**variables)
@left.evaluate(variables) == @right.evaluate(variables)
end
def self.build(string)
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