formula: tweak keg_only? formatting.

This commit is contained in:
Mike McQuaid 2017-07-07 09:23:31 +01:00 committed by GitHub
parent d9e0a0bce6
commit fa031f5045

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