aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-07-12 23:11:07 -0500
committerJack Nagel2014-07-12 23:13:32 -0500
commit7616879f569446b4431c1e1e28f29579f0ee4d48 (patch)
tree1ea245359441d922b0c4a478b6619c27bfb7b28d /Library
parenta71e18d4d77333236bac525f47084e809de32b0c (diff)
downloadhomebrew-7616879f569446b4431c1e1e28f29579f0ee4d48.tar.bz2
Simplify early return condition
Improvements to formula/bottle integration means we can be less defensive here.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/bottles.rb3
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]