brew.rb: remove unneeded exit code duplication.

Fixes comments made in:
91c267bdb1 (commitcomment-9146910).
This commit is contained in:
Mike McQuaid 2015-01-15 15:58:22 +00:00
parent fd8bb8776c
commit 3613f0349e

View File

@ -133,7 +133,6 @@ begin
if internal_cmd
Homebrew.send cmd.to_s.gsub('-', '_').downcase
exit 1 if Homebrew.failed?
elsif which "brew-#{cmd}"
%w[CACHE CELLAR LIBRARY_PATH PREFIX REPOSITORY].each do |e|
ENV["HOMEBREW_#{e}"] = Object.const_get("HOMEBREW_#{e}").to_s