Update Library/Homebrew/cli/named_args.rb
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
c18c931224
commit
3b0243900f
@ -314,7 +314,7 @@ module Homebrew
|
|||||||
def resolve_latest_keg(name)
|
def resolve_latest_keg(name)
|
||||||
_, kegs = resolve_kegs(name)
|
_, kegs = resolve_kegs(name)
|
||||||
|
|
||||||
# Return head keg if it is the only installed keg
|
# Return keg if it is the only installed keg
|
||||||
return kegs if kegs.length == 1
|
return kegs if kegs.length == 1
|
||||||
|
|
||||||
kegs.reject { |k| k.version.head? }.max_by(&:version)
|
kegs.reject { |k| k.version.head? }.max_by(&:version)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user