Prefer block pass over explicit block

This commit is contained in:
Markus Schirp 2014-08-11 15:11:22 +00:00
parent 8164de883e
commit 8c4e7cc665

View file

@ -38,9 +38,7 @@ module Mutant
# @api private
#
def self.call(&block)
Parallel.map([block], in_processes: 1) do
block.call
end.first
Parallel.map([block], in_processes: 1, &block.method(:call)).first
rescue Parallel::DeadWorker => exception
fail Error, exception
end