aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula_support.rb
diff options
context:
space:
mode:
authorMarkus Reiter2017-06-26 07:30:28 +0200
committerMarkus Reiter2017-06-28 09:25:31 +0200
commit3b4ee58c491f164c2751c1c0f941568c35fb0ac6 (patch)
treeeb6690a2d0e872c3f7e317d5aeadb0eb03697195 /Library/Homebrew/formula_support.rb
parent4fb60d89886758884fae29566fc04de66837f0c6 (diff)
downloadbrew-3b4ee58c491f164c2751c1c0f941568c35fb0ac6.tar.bz2
Refactor using `Forwardable` and `DelegateClass`.
Diffstat (limited to 'Library/Homebrew/formula_support.rb')
-rw-r--r--Library/Homebrew/formula_support.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_support.rb b/Library/Homebrew/formula_support.rb
index 4d963a55e..a4534291a 100644
--- a/Library/Homebrew/formula_support.rb
+++ b/Library/Homebrew/formula_support.rb
@@ -81,7 +81,7 @@ class BottleDisableReason
end
def to_s
- if @type == :unneeded
+ if unneeded?
"This formula doesn't require compiling."
else
@reason