Avoid intermediate array
This commit is contained in:
parent
829b6289f5
commit
d0ecd08c90
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user