aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorEsther W2017-05-18 15:43:54 -0700
committerEsther W2017-05-18 15:43:54 -0700
commit6325fb88c5ea191d12c0cf7cd4fdd91f04a79a1e (patch)
tree89b68cfc1b3d94d0a21c74ad21742010a0b5d470 /Library/Homebrew
parent4da2f24b0ee819475daae14a839d953777767e8c (diff)
downloadbrew-6325fb88c5ea191d12c0cf7cd4fdd91f04a79a1e.tar.bz2
Make behavior clearer by returning false
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/brew.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/brew.rb b/Library/Homebrew/brew.rb
index 03eeb8a18..f3e40fc14 100644
--- a/Library/Homebrew/brew.rb
+++ b/Library/Homebrew/brew.rb
@@ -21,7 +21,7 @@ if ARGV == %w[--version] || ARGV == %w[-v]
end
def require?(path)
- path ||= ""
+ return false if path.nil?
require path
rescue LoadError => e
# we should raise on syntax errors but not if the file doesn't exist.