tap: always create new casks in subdirectory.

For homebrew-cask, all casks should now be created in subdirectories,
even if that subdirectory doesn't yet exist.
This commit is contained in:
Mike McQuaid 2023-08-09 12:11:20 +01:00
parent a7d8ba131e
commit cf71b5b3ea
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829

View File

@ -1134,9 +1134,6 @@ class CoreCaskTap < AbstractCoreTap
sig { params(token: String).returns(Pathname) }
def new_cask_path(token)
cask_subdir = token[0].to_s
return super unless (cask_dir/cask_subdir).directory?
cask_dir/cask_subdir/"#{token.downcase}.rb"
end