fix style
This commit is contained in:
parent
9cf0a7409b
commit
88edb1c64b
@ -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
|
||||
|
||||
@ -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."
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user