Simplify _curl_opts implementation
This commit is contained in:
parent
345255613c
commit
bb3ceca978
@ -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) }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user