Fix Style/GuardClause style offense.
This commit is contained in:
parent
c36f42ce95
commit
9690c94f9d
@ -293,13 +293,12 @@ module Homebrew
|
|||||||
odie "Failed to install/update the '#{name}' gem." if exit_code.nonzero?
|
odie "Failed to install/update the '#{name}' gem." if exit_code.nonzero?
|
||||||
end
|
end
|
||||||
|
|
||||||
unless which executable
|
return if which(executable)
|
||||||
odie <<-EOS.undent
|
odie <<-EOS.undent
|
||||||
The '#{name}' gem is installed but couldn't find '#{executable}' in the PATH:
|
The '#{name}' gem is installed but couldn't find '#{executable}' in the PATH:
|
||||||
#{ENV["PATH"]}
|
#{ENV["PATH"]}
|
||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
# Hash of Module => Set(method_names)
|
# Hash of Module => Set(method_names)
|
||||||
@injected_dump_stat_modules = {}
|
@injected_dump_stat_modules = {}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user