Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b117c9b

Browse files
committed
Fix message checking accidentally introduced when removing pattern matching
1 parent e31dded commit b117c9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/syntax_tree/node.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2510,7 +2510,7 @@ def format_chain(q, children)
25102510

25112511
while (child = children.pop)
25122512
if child.is_a?(Call)
2513-
if child.receiver.is_a?(Call) && child.receiver.message.value == "where" && child.message.value == "not"
2513+
if child.receiver.is_a?(Call) && (child.receiver.message != :call) && (child.receiver.message.value == "where") && (child.message.value == "not")
25142514
# This is very specialized behavior wherein we group
25152515
# .where.not calls together because it looks better. For more
25162516
# information, see

0 commit comments

Comments
 (0)