Update analytics.rb
Co-authored-by: Douglas Eichelberger <697964+dduugg@users.noreply.github.com>
This commit is contained in:
parent
85dfe2561b
commit
683a8aad99
@ -12,7 +12,7 @@ module Homebrew
|
||||
end
|
||||
alias generic_analytics_api_path analytics_api_path
|
||||
|
||||
sig { params(category: String, days: T.any(Integer, String)).returns(T::Hash[String, Integer]) }
|
||||
sig { params(category: String, days: T.any(Integer, String)).returns(T::Hash[String, T.untyped]) }
|
||||
def fetch(category, days)
|
||||
Homebrew::API.fetch "#{analytics_api_path}/#{category}/#{days}d.json"
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user