We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b740324 commit ce1768dCopy full SHA for ce1768d
lib/phlex/compiler/method_compiler.rb
@@ -22,11 +22,7 @@ def around_visit(node)
22
23
# We want to clear the buffer when there’s a node that isn’t a statements node,
24
# but we should ignore nils, which are usually other buffers.
25
- if result
26
- unless Refract::StatementsNode === result
27
- clear_buffer
28
- end
29
+ clear_buffer unless result in Refract::StatementsNode | nil
30
31
result
32
end
0 commit comments