diff --git a/Library/Homebrew/cask/audit.rb b/Library/Homebrew/cask/audit.rb index eb3f0b48e9..b6ad92b7f7 100644 --- a/Library/Homebrew/cask/audit.rb +++ b/Library/Homebrew/cask/audit.rb @@ -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)