diff --git a/Library/Homebrew/mach.rb b/Library/Homebrew/mach.rb index 7b9d4d34576fc406e634e267a6ab13150305ee85..d1f4540ecbff7c083907bd33b42f3b13fd351d14 100644 --- a/Library/Homebrew/mach.rb +++ b/Library/Homebrew/mach.rb @@ -100,14 +100,14 @@ module MachO end def dylib? - mach_data.map{ |m| m.fetch :type }.include? :dylib + mach_data.any? { |m| m.fetch(:type) == :dylib } end def mach_o_executable? - mach_data.map{ |m| m.fetch :type }.include? :executable + mach_data.any? { |m| m.fetch(:type) == :executable } end def mach_o_bundle? - mach_data.map{ |m| m.fetch :type }.include? :bundle + mach_data.any? { |m| m.fetch(:type) == :bundle } end end