lib/simplecov/formatter/multi_formatter.rb in simplecov-0.18.5 vs lib/simplecov/formatter/multi_formatter.rb in simplecov-0.19.0

- old
+ new

@@ -4,16 +4,14 @@ module Formatter class MultiFormatter module InstanceMethods def format(result) formatters.map do |formatter| - begin - formatter.new.format(result) - rescue StandardError => e - warn("Formatter #{formatter} failed with #{e.class}: #{e.message} (#{e.backtrace.first})") - nil - end + formatter.new.format(result) + rescue StandardError => e + warn("Formatter #{formatter} failed with #{e.class}: #{e.message} (#{e.backtrace.first})") + nil end end end def self.new(formatters = nil) @@ -25,10 +23,10 @@ end end def self.[](*args) warn "#{Kernel.caller.first}: [DEPRECATION] ::[] is deprecated. Use ::new instead." - new(Array([*args])) + new(Array(args)) end end end end