aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/diagnostic.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/diagnostic.rb')
-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