Simpify equal ast mutation with predicate.
This commit is contained in:
parent
ef9172bca4
commit
2b7e9c60c2
1 changed files with 2 additions and 4 deletions
|
@ -6,10 +6,8 @@ module Mutant
|
|||
end
|
||||
|
||||
def append(node)
|
||||
p same_node?(node)
|
||||
unless same_node?(node)
|
||||
@block.call(node)
|
||||
end
|
||||
return if same_node?(node)
|
||||
@block.call(node)
|
||||
end
|
||||
|
||||
# FIXME: Use interhitable alias once in support gem.
|
||||
|
|
Loading…
Add table
Reference in a new issue