aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJustin Baugh2017-07-20 11:57:43 -0400
committerJustin Baugh2017-07-20 11:57:43 -0400
commite077bfe6555f0e7ab10bf1f52f815e57607d040e (patch)
tree0a0fb1d0ac74927150b511478bd5d37cf120036c /Library
parentdd334a8357bc47bfb88e40bd9d3b92e454a259fb (diff)
downloadbrew-e077bfe6555f0e7ab10bf1f52f815e57607d040e.tar.bz2
Address rubocop issues
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/diagnostic.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb
index f5e07ac2f..e6fecb478 100644
--- a/Library/Homebrew/diagnostic.rb
+++ b/Library/Homebrew/diagnostic.rb
@@ -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