Address rubocop issues

This commit is contained in:
Justin Baugh 2017-07-20 11:57:43 -04:00
parent dd334a8357
commit e077bfe655
2 changed files with 1 additions and 6 deletions

View File

@ -99,7 +99,7 @@ module Homebrew
end
def check_build_from_source
return if !ENV.has_key?("HOMEBREW_BUILD_FROM_SOURCE")
return unless ENV.key?("HOMEBREW_BUILD_FROM_SOURCE")
<<-EOS.undent
You have HOMEBREW_BUILD_FROM_SOURCE set. This environment variable is

View File

@ -89,16 +89,11 @@ following conditions:
will use a bottled version of the formula, but
`brew install <formula> --enable-bar` will trigger a source build.
* The `--build-from-source` option is invoked.
* The environment variable `HOMEBREW_BUILD_FROM_SOURCE` is set.
* The machine is not running a supported version of macOS as all
bottled builds are generated only for supported macOS versions.
* Homebrew is installed to a prefix other than the standard
`/usr/local` (although some bottles support this).
In order to completely disable bottled builds, simply add a value for
the environment variable `HOMEBREW_BUILD_FROM_SOURCE` to
your profile.
We aim to bottle everything.
## How do I get a formula from someone elses branch?