diff options
| author | Jack Nagel | 2013-06-20 16:25:58 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-06-20 16:25:59 -0500 |
| commit | d8756075f4e44fd4e431e39fbbe6ce5c85813f5f (patch) | |
| tree | 99763a14f4a2e41ea18b54a933607dad2dbf2b1b /Library/Homebrew/formula.rb | |
| parent | 7cdf400762000a3813e9b66f171fc112949be8ec (diff) | |
| download | brew-d8756075f4e44fd4e431e39fbbe6ce5c85813f5f.tar.bz2 | |
Use a Set for skip_clean_paths
Diffstat (limited to 'Library/Homebrew/formula.rb')
| -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 |
