mirror of
https://github.com/gosticks/brew.git
synced 2026-10-05 23:16:55 +00:00
Make behavior clearer by returning false
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user