Skip to content

Commit 6f03452

Browse files
charlespwdclaude
andcommitted
style: fix rubocop offenses
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 1b420ab commit 6f03452

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/liquid/expression.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def parse(markup, ss = StringScanner.new(""), cache = nil)
4848
end
4949

5050
def inner_parse(markup, ss, cache)
51-
if (markup.start_with?("(") && markup.end_with?(")")) && markup =~ RANGES_REGEX
51+
if markup.start_with?("(") && markup.end_with?(")") && markup =~ RANGES_REGEX
5252
start_markup = Regexp.last_match(1)
5353
end_markup = Regexp.last_match(2)
5454
start_obj = parse(start_markup, ss, cache)

test/unit/parser_unit_test.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def test_expression
7474
assert_equal('wut', p.expression)
7575
assert_equal(true, p.expression)
7676
assert_equal(false, p.expression)
77-
assert_equal((0..5), p.expression)
77+
assert_equal(0..5, p.expression)
7878
end
7979

8080
def test_number
@@ -104,11 +104,11 @@ def test_unnamed_variable_lookup
104104

105105
def test_range_lookup
106106
p = new_parser('(0..5) (a..b)')
107-
assert_equal((0..5), p.expression)
107+
assert_equal(0..5, p.expression)
108108

109109
r2 = p.expression
110110
assert(r2.is_a?(RangeLookup))
111-
assert_equal((1..4), r2.evaluate(Context.new({ 'a' => 1, 'b' => 4 })))
111+
assert_equal(1..4, r2.evaluate(Context.new({ 'a' => 1, 'b' => 4 })))
112112
end
113113

114114
def test_ranges

0 commit comments

Comments
 (0)