Skip to content

Commit

Permalink
Merge b3b02d4 into bb9f383
Browse files Browse the repository at this point in the history
  • Loading branch information
flyerhzm committed Jan 9, 2021
2 parents bb9f383 + b3b02d4 commit 332c91d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/synvert/core/rewriter/condition/if_exist_condition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Rewriter::IfExistCondition < Rewriter::Condition
def match?
match = false
@instance.current_node.recursive_children do |child_node|
match = match || (child_node && child_node.match?(@rules))
match ||= (child_node && child_node.match?(@rules))
end
match
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Rewriter::UnlessExistCondition < Rewriter::Condition
def match?
match = false
@instance.current_node.recursive_children do |child_node|
match = match || (child_node && child_node.match?(@rules))
match ||= (child_node && child_node.match?(@rules))
end
!match
end
Expand Down

0 comments on commit 332c91d

Please sign in to comment.