From d0ecd08c90be87780e8b911aa8659ae3dd10cf6c Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 7 Sep 2014 14:07:06 -0500 Subject: [PATCH] Avoid intermediate array --- Library/Homebrew/formula.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 2b7c2ced24..94cc964a91 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -589,7 +589,7 @@ class Formula active_spec.add_legacy_patches(patches) 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| patch.verify_download_integrity(patch.fetch)