Fix 1 style conflict, keep the other for consistency
This commit is contained in:
parent
f8d84249aa
commit
440fb185dd
@ -237,13 +237,9 @@ module Homebrew
|
|||||||
@switch_sources[option_to_name(option)] == :env_var
|
@switch_sources[option_to_name(option)] == :env_var
|
||||||
end
|
end
|
||||||
|
|
||||||
if violations.count - env_var_options.count == 1
|
select_cli_arg = violations.count - env_var_options.count == 1
|
||||||
env_var_options.each do |option|
|
raise OptionConflictError, violations.map(&method(:name_to_option)) unless select_cli_arg
|
||||||
disable_switch option
|
env_var_options.each(&method(:disable_switch))
|
||||||
end
|
|
||||||
else
|
|
||||||
raise OptionConflictError, violations.map(&method(:name_to_option))
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user