cask/audit: fix sharding for font-* casks

This commit is contained in:
Bevan Kay 2024-05-16 11:29:58 +10:00
parent 0a358b8518
commit db4099d977
No known key found for this signature in database
GPG Key ID: C55CB024B5314B57

View File

@ -817,11 +817,7 @@ module Cask
def audit_cask_path
return unless cask.tap.core_cask_tap?
expected_path = if cask.artifacts.any?(Artifact::Font)
cask.tap.new_cask_font_path(cask.token)
else
cask.tap.new_cask_path(cask.token)
end
expected_path = cask.tap.new_cask_path(cask.token)
return if cask.sourcefile_path.to_s.end_with?(expected_path)