Avoid intermediate array

This commit is contained in:
Jack Nagel 2014-09-07 14:07:06 -05:00
parent 829b6289f5
commit d0ecd08c90

View File

@ -589,7 +589,7 @@ class Formula
active_spec.add_legacy_patches(patches) active_spec.add_legacy_patches(patches)
return if patchlist.empty? return if patchlist.empty?
active_spec.patches.grep(DATAPatch).each { |p| p.path = path } active_spec.patches.grep(DATAPatch) { |p| p.path = path }
active_spec.patches.select(&:external?).each do |patch| active_spec.patches.select(&:external?).each do |patch|
patch.verify_download_integrity(patch.fetch) patch.verify_download_integrity(patch.fetch)