Improve readability of guard clause

Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Frank Lam 2020-04-29 18:16:39 +08:00 committed by GitHub
parent 9a605a1dd6
commit 682914bf40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,7 +123,7 @@ module Cask
end
def outdated_info(greedy, verbose, json)
return token unless verbose || json
return token if !verbose && !json
installed_versions = outdated_versions(greedy).join(", ")