aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-08-17 17:08:23 +0200
committerBaptiste Fontaine2015-08-18 00:18:22 +0200
commit8ba0fb9fcf0d4d4d3497cf524b4c21c6fd4a86e3 (patch)
tree9eb0a29a3ce1fc383bdc9cb53dd91039413cd3e5 /Library/Homebrew/test
parentf690b546215119c14c9626a5c89dbbc828eb3503 (diff)
downloadbrew-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/test')
-rw-r--r--Library/Homebrew/test/test_patching.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/test/test_patching.rb b/Library/Homebrew/test/test_patching.rb
index 85c131021..0b6e3d941 100644
--- a/Library/Homebrew/test/test_patching.rb
+++ b/Library/Homebrew/test/test_patching.rb
@@ -17,7 +17,7 @@ class PatchingTests < Homebrew::TestCase
def teardown
@_f.clear_cache
- @_f.patchlist.select(&:external?).each(&:clear_cache)
+ @_f.patchlist.each { |p| p.clear_cache if p.external? }
end
def assert_patched(formula)