diff options
| author | Esther W | 2017-05-18 15:43:54 -0700 |
|---|---|---|
| committer | Esther W | 2017-05-18 15:43:54 -0700 |
| commit | 6325fb88c5ea191d12c0cf7cd4fdd91f04a79a1e (patch) | |
| tree | 89b68cfc1b3d94d0a21c74ad21742010a0b5d470 | |
| parent | 4da2f24b0ee819475daae14a839d953777767e8c (diff) | |
| download | brew-6325fb88c5ea191d12c0cf7cd4fdd91f04a79a1e.tar.bz2 | |
Make behavior clearer by returning false
| -rw-r--r-- | Library/Homebrew/brew.rb | 2 |
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. |
