Prefer block pass over explicit block
This commit is contained in:
parent
ba11d7d889
commit
afe948c78a
1 changed files with 1 additions and 3 deletions
|
@ -100,9 +100,7 @@ module Mutant
|
|||
#
|
||||
# @api private
|
||||
def emit_selector_replacement
|
||||
SELECTOR_REPLACEMENTS.fetch(selector, EMPTY_ARRAY).each do |replacement|
|
||||
emit_selector(replacement)
|
||||
end
|
||||
SELECTOR_REPLACEMENTS.fetch(selector, EMPTY_ARRAY).each(&method(:emit_selector))
|
||||
end
|
||||
|
||||
# Emit naked receiver mutation
|
||||
|
|
Loading…
Reference in a new issue