Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
p-linnane and MikeMcQuaid committed May 7, 2024
1 parent 46f2217 commit 9198690
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/Homebrew/tap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1352,8 +1352,8 @@ def core_cask_tap?

sig { params(token: String).returns(Pathname) }
def new_cask_path(token)
cask_subdir = if token.start_with?("font-")
"fonts/#{token.delete_prefix("font-").first}"
cask_subdir = if token.start_with?("font")
"font/#{token.sub(/^font-?/).first}"
else
token[0].to_s
end
Expand Down

0 comments on commit 9198690

Please sign in to comment.