Use symbol for respond_to?.

This commit is contained in:
Markus Reiter 2020-12-11 16:38:29 +01:00 committed by Sam Ford
parent fb3a1a408c
commit af56a99a37
No known key found for this signature in database
GPG Key ID: 95209E46C7FFDEFE

View File

@ -97,7 +97,7 @@ module Homebrew
onoe e
end
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
raise UsageError, "No formulae or casks to check." if formulae_and_casks_to_check.blank?