fix style

This commit is contained in:
Bevan Kay 2021-07-04 17:25:03 +10:00
parent 9cf0a7409b
commit 88edb1c64b
No known key found for this signature in database
GPG Key ID: 479C98436A4773B9
2 changed files with 3 additions and 4 deletions

View File

@ -122,9 +122,7 @@ module Cask
# special case: tap version is not available
return [] if version.nil?
if greedy || greedy_latest && greedy_auto_updates
return versions if version.latest?
elsif greedy_auto_updates && auto_updates
if greedy || greedy_latest && greedy_auto_updates || greedy_auto_updates && auto_updates
return versions if version.latest?
elsif greedy_latest && version.latest?
return versions

View File

@ -121,7 +121,8 @@ module Cask
if casks.empty? && !greedy
if !args.greedy_auto_updates? && !args.greedy_latest?
ohai "Casks with 'auto_updates true' or 'version :latest' will not be upgraded; pass `--greedy` to upgrade them."
ohai "Casks with 'auto_updates true' or 'version :latest'
will not be upgraded; pass `--greedy` to upgrade them."
end
if args.greedy_auto_updates? && !args.greedy_latest?
ohai "Casks with 'version :latest' will not be upgraded; pass `--greedy-latest` to upgrade them."