Remove unnecessary memoization from FormulaInstaller#build_argv
This commit is contained in:
parent
536430e0ae
commit
a12d3918d4
@ -373,7 +373,6 @@ class FormulaInstaller
|
|||||||
end
|
end
|
||||||
|
|
||||||
def build_argv
|
def build_argv
|
||||||
@build_argv ||= begin
|
|
||||||
opts = Options.coerce(ARGV.options_only)
|
opts = Options.coerce(ARGV.options_only)
|
||||||
unless opts.include? '--fresh'
|
unless opts.include? '--fresh'
|
||||||
opts.concat(options) # from a dependent formula
|
opts.concat(options) # from a dependent formula
|
||||||
@ -381,7 +380,6 @@ class FormulaInstaller
|
|||||||
end
|
end
|
||||||
opts << Option.new("--build-from-source") # don't download bottle
|
opts << Option.new("--build-from-source") # don't download bottle
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
def build
|
def build
|
||||||
FileUtils.rm Dir["#{HOMEBREW_LOGS}/#{f}/*"]
|
FileUtils.rm Dir["#{HOMEBREW_LOGS}/#{f}/*"]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user