Skip to content

Commit 6596910

Browse files
authored
Merge 9d3fde7 into 99aa892
2 parents 99aa892 + 9d3fde7 commit 6596910

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/synvert/core/rewriter/condition/if_exist_condition.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Rewriter::IfExistCondition < Rewriter::Condition
77
def match?
88
match = false
99
@instance.current_node.recursive_children do |child_node|
10-
match ||= (child_node&.match?(@rules))
10+
match ||= child_node&.match?(@rules)
1111
end
1212
match
1313
end

lib/synvert/core/rewriter/condition/unless_exist_condition.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Rewriter::UnlessExistCondition < Rewriter::Condition
77
def match?
88
match = false
99
@instance.current_node.recursive_children do |child_node|
10-
match ||= (child_node&.match?(@rules))
10+
match ||= child_node&.match?(@rules)
1111
end
1212
!match
1313
end

0 commit comments

Comments
 (0)