From a12d3918d42ec5d419e1140a36b33144ab985490 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 1 Mar 2014 23:55:21 -0600 Subject: Remove unnecessary memoization from FormulaInstaller#build_argv --- Library/Homebrew/formula_installer.rb | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3