Merge pull request #2863 from mistydemeo/formula_keg_only_boolean

Formula#keg_only should be a boolean
This commit is contained in:
Mike McQuaid 2017-07-07 10:14:32 +01:00 committed by GitHub
commit 1406f89ac5

View File

@ -1008,7 +1008,8 @@ class Formula
# rarely, you don't want your library symlinked into the main prefix # rarely, you don't want your library symlinked into the main prefix
# see gettext.rb for an example # see gettext.rb for an example
def keg_only? def keg_only?
keg_only_reason && keg_only_reason.valid? return false unless keg_only_reason
keg_only_reason.valid?
end end
# @private # @private