diff options
| author | Jack Nagel | 2014-07-12 23:11:07 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-07-12 23:13:32 -0500 |
| commit | 2bbc98694a56d406c350644fb62e11a64c5834c8 (patch) | |
| tree | c47f570b8574ff88f8d6dca73b120d9dacf0eab4 | |
| parent | 7b1ca1d152b732fad3fa74651da8c4baff273b15 (diff) | |
| download | brew-2bbc98694a56d406c350644fb62e11a64c5834c8.tar.bz2 | |
Simplify early return condition
Improvements to formula/bottle integration means we can be less
defensive here.
| -rw-r--r-- | Library/Homebrew/bottles.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/bottles.rb b/Library/Homebrew/bottles.rb index 37d6033ea..5be1615f4 100644 --- a/Library/Homebrew/bottles.rb +++ b/Library/Homebrew/bottles.rb @@ -16,8 +16,7 @@ end def bottle_file_outdated? f, file filename = file.basename.to_s - return nil unless f and f.bottle and f.bottle.url \ - and filename.match(bottle_regex) + return unless f.bottle && filename.match(bottle_regex) bottle_ext = filename[bottle_native_regex, 1] bottle_url_ext = f.bottle.url[bottle_native_regex, 1] |
