Update Library/Homebrew/cask/audit.rb

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Razvan Azamfirei 2023-08-09 15:26:47 -04:00 committed by GitHub
parent ef9e0bc8a6
commit a916d6184b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -721,8 +721,7 @@ module Cask
def audit_cask_path
return if cask.tap != "homebrew/cask"
cask_subdir = cask.token[0].downcase
expected_path = "Casks/#{cask_subdir}/#{cask.token}.rb"
expected_path = cask.tap.new_cask_path(cask.token)
return if cask.ruby_source_path.to_s.end_with?(expected_path)