aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMarkus Reiter2017-05-19 16:51:57 +0200
committerGitHub2017-05-19 16:51:57 +0200
commit78296ab62b4fc7363dd2c7e237eb6787d730f54e (patch)
tree89b68cfc1b3d94d0a21c74ad21742010a0b5d470 /Library
parent0977b4a17d92853a952bcba643cfd3dac21db944 (diff)
parent6325fb88c5ea191d12c0cf7cd4fdd91f04a79a1e (diff)
downloadbrew-78296ab62b4fc7363dd2c7e237eb6787d730f54e.tar.bz2
Merge pull request #2652 from ewang12/fix-brew-cask-no-args
Fix implicit conversion of nil into string error
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/brew.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/brew.rb b/Library/Homebrew/brew.rb
index 9b2ff75f0..f3e40fc14 100644
--- a/Library/Homebrew/brew.rb
+++ b/Library/Homebrew/brew.rb
@@ -21,6 +21,7 @@ if ARGV == %w[--version] || ARGV == %w[-v]
end
def require?(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.