Skip to content

Commit

Permalink
cosmetic refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
bver committed May 6, 2012
1 parent 7873908 commit 8ac6022
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/mutation_simplify.rb
Expand Up @@ -40,9 +40,8 @@ def match_patterns( track_reloc, patterns, node_idx )
found = track_reloc.find { |n| n.back == stack.last and n.loc_idx == pattern.parent_arg }
return [] if found.nil?

if pattern.kind_of? Pattern
return [] unless match_node?( found, pattern )
end
return [] if pattern.kind_of?(Pattern) and not match_node?( found, pattern )

node_idx = track_reloc.index( found )
ptx << node_idx

Expand Down

0 comments on commit 8ac6022

Please sign in to comment.