Skip to content

Commit

Permalink
Merge d0d7bbe into 3a4f124
Browse files Browse the repository at this point in the history
  • Loading branch information
flyerhzm committed Jan 17, 2021
2 parents 3a4f124 + d0d7bbe commit 39d1cb5
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
Expand Up @@ -7,7 +7,7 @@ class Rewriter::IfExistCondition < Rewriter::Condition
def match?
match = false
@instance.current_node.recursive_children do |child_node|
match ||= (child_node&.match?(@rules))
match ||= child_node&.match?(@rules)
end
match
end
Expand Down
Expand Up @@ -7,7 +7,7 @@ class Rewriter::UnlessExistCondition < Rewriter::Condition
def match?
match = false
@instance.current_node.recursive_children do |child_node|
match ||= (child_node&.match?(@rules))
match ||= child_node&.match?(@rules)
end
!match
end
Expand Down

0 comments on commit 39d1cb5

Please sign in to comment.