diff options
| author | Baptiste Fontaine | 2015-08-17 17:08:23 +0200 | 
|---|---|---|
| committer | Baptiste Fontaine | 2015-08-18 00:18:22 +0200 | 
| commit | 8ba0fb9fcf0d4d4d3497cf524b4c21c6fd4a86e3 (patch) | |
| tree | 9eb0a29a3ce1fc383bdc9cb53dd91039413cd3e5 /Library/Homebrew/cmd/fetch.rb | |
| parent | f690b546215119c14c9626a5c89dbbc828eb3503 (diff) | |
| download | brew-8ba0fb9fcf0d4d4d3497cf524b4c21c6fd4a86e3.tar.bz2 | |
unnecessary calls to .select simplified
These are minor perf optimizations.
Closes Homebrew/homebrew#43028.
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
Diffstat (limited to 'Library/Homebrew/cmd/fetch.rb')
| -rw-r--r-- | Library/Homebrew/cmd/fetch.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/Library/Homebrew/cmd/fetch.rb b/Library/Homebrew/cmd/fetch.rb index edf9c7f76..61c8bf781 100644 --- a/Library/Homebrew/cmd/fetch.rb +++ b/Library/Homebrew/cmd/fetch.rb @@ -24,7 +24,7 @@ module Homebrew        else          fetch_formula(f)          f.resources.each { |r| fetch_resource(r) } -        f.patchlist.select(&:external?).each { |p| fetch_patch(p) } +        f.patchlist.each { |p| fetch_patch(p) if p.external? }        end      end    end | 
