Skip to content

Commit

Permalink
Merge pull request #18042 from Homebrew/download-typed-strict
Browse files Browse the repository at this point in the history
  • Loading branch information
p-linnane committed Aug 13, 2024
2 parents 1b8d546 + 31df4cf commit 79d887a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/Homebrew/api/download.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: true # rubocop:todo Sorbet/StrictSigil
# typed: strict
# frozen_string_literal: true

require "downloadable"
Expand All @@ -23,7 +23,7 @@ class Download < Downloadable
}
def initialize(url, checksum, mirrors: [], cache: nil)
super()
@url = URL.new(url, using: API::DownloadStrategy)
@url = T.let(URL.new(url, using: API::DownloadStrategy), URL)
@checksum = checksum
@mirrors = mirrors
@cache = cache
Expand Down

0 comments on commit 79d887a

Please sign in to comment.