Satisfy brew typecheck and style
This commit is contained in:
parent
8ea9ec8176
commit
f93ecd7d55
@ -68,7 +68,7 @@ module Homebrew
|
||||
# Checks the content at the URL for new versions.
|
||||
sig { params(url: String, regex: T.nilable(Regexp)).returns(T::Hash[Symbol, T.untyped]) }
|
||||
def self.find_versions(url, regex, &block)
|
||||
raise ArgumentError, "The #{name.demodulize} strategy does not support regular expressions." if regex
|
||||
raise ArgumentError, "The #{T.must(name).demodulize} strategy does not support a regex." if regex
|
||||
|
||||
match_data = { matches: {}, regex: regex, url: url }
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user