Update rubocop to 1.61.0

This commit is contained in:
Jenny Shen
2024-04-05 10:23:37 -04:00
parent 8596bb2e38
commit fc4f19471e
5 changed files with 76 additions and 4 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ module Liquid
@environments.flatten!
@static_environments = [static_environments].flatten(1).freeze
@scopes = [(outer_scope || {})]
@scopes = [outer_scope || {}]
@registers = registers.is_a?(Registers) ? registers : Registers.new(registers)
@errors = []
@partial = false
+1 -1
View File
@@ -111,7 +111,7 @@ module Liquid
def parse_binary_comparisons(p)
condition = parse_comparison(p)
first_condition = condition
while (op = (p.id?('and') || p.id?('or')))
while (op = p.id?('and') || p.id?('or'))
child_condition = parse_comparison(p)
condition.send(op, child_condition)
condition = child_condition