Merge pull request #2652 from ewang12/fix-brew-cask-no-args
Fix implicit conversion of nil into string error
This commit is contained in:
commit
78296ab62b
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user