diff options
| author | Markus Reiter | 2016-09-23 11:01:40 +0200 |
|---|---|---|
| committer | Markus Reiter | 2016-09-23 15:30:07 +0200 |
| commit | fe2d51e0b9d4d9c138e512c245b1ed8d0f1dbf53 (patch) | |
| tree | 24c62806b60d59b0f9a689ac693a7afec5bd3291 /Library/Homebrew/dev-cmd/bottle.rb | |
| parent | a5b11a6a5c7e29b9040f93fd211f52479507dd01 (diff) | |
| download | brew-fe2d51e0b9d4d9c138e512c245b1ed8d0f1dbf53.tar.bz2 | |
Fix Style/IfUnlessModifier.
Diffstat (limited to 'Library/Homebrew/dev-cmd/bottle.rb')
| -rw-r--r-- | Library/Homebrew/dev-cmd/bottle.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Library/Homebrew/dev-cmd/bottle.rb b/Library/Homebrew/dev-cmd/bottle.rb index 797828e0e..b2aa3b2c5 100644 --- a/Library/Homebrew/dev-cmd/bottle.rb +++ b/Library/Homebrew/dev-cmd/bottle.rb @@ -108,9 +108,7 @@ module Homebrew absolute_symlinks_start_with_string = [] keg.find do |pn| next unless pn.symlink? && (link = pn.readlink).absolute? - if link.to_s.start_with?(string) - absolute_symlinks_start_with_string << pn - end + absolute_symlinks_start_with_string << pn if link.to_s.start_with?(string) end if ARGV.verbose? @@ -155,9 +153,7 @@ module Homebrew return ofail "Formula not installed with '--build-bottle': #{f.full_name}" end - unless f.stable - return ofail "Formula has no stable version: #{f.full_name}" - end + return ofail "Formula has no stable version: #{f.full_name}" unless f.stable if ARGV.include?("--no-rebuild") || !f.tap rebuild = 0 |
