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.
2 parents 31b0a2b + f5e4bf6 commit ce2022bCopy full SHA for ce2022b
lib/synvert/core/rewriter/condition/if_exist_condition.rb
@@ -7,7 +7,7 @@ class Rewriter::IfExistCondition < Rewriter::Condition
7
def match?
8
match = false
9
@instance.current_node.recursive_children do |child_node|
10
- match = match || (child_node&.match?(@rules))
+ match ||= (child_node&.match?(@rules))
11
end
12
match
13
lib/synvert/core/rewriter/condition/unless_exist_condition.rb
@@ -7,7 +7,7 @@ class Rewriter::UnlessExistCondition < Rewriter::Condition
!match
0 commit comments