diff options
| author | Jack Nagel | 2013-06-20 16:25:58 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-06-20 16:25:59 -0500 |
| commit | 9dc6e4b06819fff617f50e6d04c45f8126433193 (patch) | |
| tree | dc8e7877962623007c2fbaf55a1b0d196354782d /Library | |
| parent | 7a9ed17fbbf09b2aeae134c03eb3b0478933ab58 (diff) | |
| download | homebrew-9dc6e4b06819fff617f50e6d04c45f8126433193.tar.bz2 | |
Use a Set for skip_clean_paths
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 5 |
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 |
