Simplify _curl_opts implementation

This commit is contained in:
Douglas Eichelberger 2025-09-08 09:35:34 -07:00
parent 345255613c
commit bb3ceca978
No known key found for this signature in database
GPG Key ID: F90193CBD547EB81

View File

@ -645,9 +645,7 @@ class CurlDownloadStrategy < AbstractFileDownloadStrategy
sig { returns(T::Hash[Symbol, T.any(String, Symbol)]) }
def _curl_opts
return { user_agent: meta.fetch(:user_agent) } if meta.key?(:user_agent)
{}
meta.slice(:user_agent)
end
sig { override.params(args: String, options: T.untyped).returns(SystemCommand::Result) }