aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-06-20 16:25:58 -0500
committerJack Nagel2013-06-20 16:25:59 -0500
commit9dc6e4b06819fff617f50e6d04c45f8126433193 (patch)
treedc8e7877962623007c2fbaf55a1b0d196354782d /Library
parent7a9ed17fbbf09b2aeae134c03eb3b0478933ab58 (diff)
downloadhomebrew-9dc6e4b06819fff617f50e6d04c45f8126433193.tar.bz2
Use a Set for skip_clean_paths
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index b7739a74a..c981ee3c0 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -789,10 +789,9 @@ class Formula
return
end
- @skip_clean_paths ||= []
paths.each do |p|
p = p.to_s unless p == :la # Keep :la in paths as a symbol
- @skip_clean_paths << p unless @skip_clean_paths.include? p
+ skip_clean_paths << p
end
end
@@ -801,7 +800,7 @@ class Formula
end
def skip_clean_paths
- @skip_clean_paths or []
+ @skip_clean_paths ||= Set.new
end
def keg_only reason, explanation=nil