Skip to content

Commit

Permalink
Remove T.unsafe usage
Browse files Browse the repository at this point in the history
Co-authored-by: Mike McQuaid <[email protected]>
  • Loading branch information
Rylan12 and MikeMcQuaid committed Sep 10, 2024
1 parent 8cb62b1 commit 711d222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/cask_loader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ def self.try_new(ref, warn: false)
end

sig { params(path: T.any(Pathname, String), token: String).void }
def initialize(path, token: T.unsafe(nil))
def initialize(path, token: "")
super

Check warning on line 521 in Library/Homebrew/cask/cask_loader.rb

View check run for this annotation

Codecov / codecov/patch

Library/Homebrew/cask/cask_loader.rb#L521

Added line #L521 was not covered by tests

installed_tap = Cask.new(@token).tab.tap

Check warning on line 523 in Library/Homebrew/cask/cask_loader.rb

View check run for this annotation

Codecov / codecov/patch

Library/Homebrew/cask/cask_loader.rb#L523

Added line #L523 was not covered by tests
Expand Down

0 comments on commit 711d222

Please sign in to comment.