Skip to content

Commit

Permalink
cask/url: deprecate url do blocks.
Browse files Browse the repository at this point in the history
We're removing these in
Homebrew/homebrew-cask#186501
so let's deprecate them too.
  • Loading branch information
MikeMcQuaid committed Sep 25, 2024
1 parent d3cc0c3 commit 4779aaa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Library/Homebrew/cask/url.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ def initialize(uri, dsl:, &block)
@uri = uri
@dsl = dsl
@block = block

odeprecated "cask `url do` blocks" if @block
end

sig { returns(T.any(T.any(URI::Generic, String), [T.any(URI::Generic, String), Hash])) }
Expand Down

0 comments on commit 4779aaa

Please sign in to comment.