repair message

This commit is contained in:
hyuraku 2020-12-20 11:34:07 +09:00 committed by Sam Ford
parent 9f7e471382
commit ffc5c3206e
No known key found for this signature in database
GPG Key ID: 95209E46C7FFDEFE

View File

@ -97,8 +97,7 @@ module Homebrew
onoe e onoe e
end end
else else
raise UsageError, "ENV['HOMEBREW_LIVECHECK_WATCHLIST'] or ~/.brew_livecheck_watchlist is required " \ raise UsageError, "A watchlist file is required when no arguments are given."
"if no formula or cask argument is passed"
end&.sort_by do |formula_or_cask| end&.sort_by do |formula_or_cask|
formula_or_cask.respond_to?(:token) ? formula_or_cask.token : formula_or_cask.name formula_or_cask.respond_to?(:token) ? formula_or_cask.token : formula_or_cask.name
end end