Remove unnecessary conditional
If ARGV.named.empty?, then ARGV.formulae.map(&:name) == [].
This commit is contained in:
parent
081036c81c
commit
529b060dbb
@ -3,13 +3,10 @@ require "extend/ENV"
|
|||||||
module Homebrew
|
module Homebrew
|
||||||
def __env
|
def __env
|
||||||
ENV.activate_extensions!
|
ENV.activate_extensions!
|
||||||
|
ENV.deps = ARGV.formulae.map(&:name) if superenv?
|
||||||
if superenv?
|
|
||||||
ENV.deps = ARGV.formulae.map(&:name) unless ARGV.named.empty?
|
|
||||||
end
|
|
||||||
|
|
||||||
ENV.setup_build_environment
|
ENV.setup_build_environment
|
||||||
ENV.universal_binary if ARGV.build_universal?
|
ENV.universal_binary if ARGV.build_universal?
|
||||||
|
|
||||||
if $stdout.tty?
|
if $stdout.tty?
|
||||||
dump_build_env ENV
|
dump_build_env ENV
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user