Skip to content

Commit aa0573d

Browse files
committed
Fix incorrect translation of Ternaryable.call
1 parent 8f15bbb commit aa0573d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/syntax_tree/node.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -5396,7 +5396,7 @@ def ternaryable?(statement)
53965396
# operators, then we can't use a ternary expression as it would break
53975397
# the flow control.
53985398
operator = statement.operator
5399-
operator != "and" && operator != "or"
5399+
operator != :and && operator != :or
54005400
else
54015401
true
54025402
end

0 commit comments

Comments
 (0)