Fix loading renamed casks from API.

This commit is contained in:
Markus Reiter 2024-02-08 15:11:02 +01:00
parent 889854b0b3
commit a37afcb777
No known key found for this signature in database
GPG Key ID: 245293B51702655B

View File

@ -297,8 +297,7 @@ module Cask
return unless (match = ref.match(HOMEBREW_MAIN_TAP_CASK_REGEX)) return unless (match = ref.match(HOMEBREW_MAIN_TAP_CASK_REGEX))
token = match[:token] token = match[:token]
return if !Homebrew::API::Cask.all_casks.key?(token) && !Homebrew::API::Cask.all_renames.key?(token)
return unless Homebrew::API::Cask.all_casks.key?(token)
ref = "#{CoreCaskTap.instance}/#{token}" ref = "#{CoreCaskTap.instance}/#{token}"