diff options
| author | Jack Nagel | 2012-08-21 13:45:35 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-08-21 13:45:35 -0500 |
| commit | 8af25edcf825260da0a151a30126b944d369b680 (patch) | |
| tree | 1ad4d1be3fff381413cf32e4f5d17e354e48850c /Library/Homebrew/mach.rb | |
| parent | d23c3898e369ecd557da663e83afc7775f49404d (diff) | |
| download | homebrew-8af25edcf825260da0a151a30126b944d369b680.tar.bz2 | |
mach-o: use any? instead of map and include?
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/mach.rb')
| -rw-r--r-- | Library/Homebrew/mach.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/mach.rb b/Library/Homebrew/mach.rb index 7b9d4d345..d1f4540ec 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 |
