diff options
| author | Markus Reiter | 2016-09-20 22:24:31 +0200 |
|---|---|---|
| committer | Markus Reiter | 2016-09-23 15:30:06 +0200 |
| commit | 23eac7ab897818689eeff6a810354d85543ad2bb (patch) | |
| tree | 7638ad6bf1a937c76e68af7ebea473a40e958784 /Library/Homebrew/software_spec.rb | |
| parent | 52ff98853068c03b3bfa777932da1da69e35e583 (diff) | |
| download | brew-23eac7ab897818689eeff6a810354d85543ad2bb.tar.bz2 | |
Fix DoubleNegation.
Diffstat (limited to 'Library/Homebrew/software_spec.rb')
| -rw-r--r-- | Library/Homebrew/software_spec.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Library/Homebrew/software_spec.rb b/Library/Homebrew/software_spec.rb index 8e42e20da..25373c322 100644 --- a/Library/Homebrew/software_spec.rb +++ b/Library/Homebrew/software_spec.rb @@ -65,11 +65,12 @@ class SoftwareSpec end def bottle_unneeded? - !!@bottle_disable_reason && @bottle_disable_reason.unneeded? + return false unless @bottle_disable_reason + @bottle_disable_reason.unneeded? end def bottle_disabled? - !!@bottle_disable_reason + @bottle_disable_reason ? true : false end attr_reader :bottle_disable_reason @@ -318,7 +319,7 @@ class BottleSpecification end def tag?(tag) - !!checksum_for(tag) + checksum_for(tag) ? true : false end # Checksum methods in the DSL's bottle block optionally take |
