diff options
| author | Jack Nagel | 2014-03-01 23:55:21 -0600 |
|---|---|---|
| committer | Jack Nagel | 2014-03-01 23:55:21 -0600 |
| commit | a12d3918d42ec5d419e1140a36b33144ab985490 (patch) | |
| tree | 46796d8ebcfd9b56df2d77923f10bf77683e9f36 /Library | |
| parent | 536430e0ae2707955ab8fdcf33772a6d64b83898 (diff) | |
| download | brew-a12d3918d42ec5d419e1140a36b33144ab985490.tar.bz2 | |
Remove unnecessary memoization from FormulaInstaller#build_argv
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index c58caefa0..eb562c021 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -373,14 +373,12 @@ class FormulaInstaller end def build_argv - @build_argv ||= begin - opts = Options.coerce(ARGV.options_only) - unless opts.include? '--fresh' - opts.concat(options) # from a dependent formula - opts.concat(tab.used_options) # from a previous install - end - opts << Option.new("--build-from-source") # don't download bottle + opts = Options.coerce(ARGV.options_only) + unless opts.include? '--fresh' + opts.concat(options) # from a dependent formula + opts.concat(tab.used_options) # from a previous install end + opts << Option.new("--build-from-source") # don't download bottle end def build |
