Remove unused parameter from CaskLoader::tap_paths.

This commit is contained in:
Markus Reiter 2024-02-08 14:43:53 +01:00
parent 6c506a4714
commit 6e5b6b7cc9
No known key found for this signature in database
GPG Key ID: 245293B51702655B

View File

@ -482,7 +482,7 @@ module Cask
# if the same token exists in multiple taps.
class FromAmbiguousTapPathLoader < FromTapPathLoader
def self.try_new(ref, warn: false)
case (possible_tap_casks = CaskLoader.tap_paths(ref, warn: warn)).count
case (possible_tap_casks = CaskLoader.tap_paths(ref)).count
when 1
new(possible_tap_casks.first)
when 2..Float::INFINITY
@ -587,7 +587,7 @@ module Cask
find_cask_in_tap(token.to_s.downcase, CoreCaskTap.instance)
end
def self.tap_paths(token, warn: true)
def self.tap_paths(token)
token = token.to_s.downcase
Tap.map { |tap| find_cask_in_tap(token, tap) }.select(&:exist?)