Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix incorrect translation of Ternaryable.call
  • Loading branch information
kddnewton committed Oct 17, 2022
commit aa0573ddc919c18d641b71757571805c780a3d3a
2 changes: 1 addition & 1 deletion lib/syntax_tree/node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5396,7 +5396,7 @@ def ternaryable?(statement)
# operators, then we can't use a ternary expression as it would break
# the flow control.
operator = statement.operator
operator != "and" && operator != "or"
operator != :and && operator != :or
else
true
end
Expand Down