Make behavior clearer by returning false
This commit is contained in:
parent
4da2f24b0e
commit
6325fb88c5
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user