Simplify _curl_opts implementation
This commit is contained in:
parent
d7804769af
commit
0440dcd79f
@ -645,9 +645,7 @@ class CurlDownloadStrategy < AbstractFileDownloadStrategy
|
|||||||
|
|
||||||
sig { returns(T::Hash[Symbol, T.any(String, Symbol)]) }
|
sig { returns(T::Hash[Symbol, T.any(String, Symbol)]) }
|
||||||
def _curl_opts
|
def _curl_opts
|
||||||
return { user_agent: meta.fetch(:user_agent) } if meta.key?(:user_agent)
|
meta.slice(:user_agent)
|
||||||
|
|
||||||
{}
|
|
||||||
end
|
end
|
||||||
|
|
||||||
sig { override.params(args: String, options: T.untyped).returns(SystemCommand::Result) }
|
sig { override.params(args: String, options: T.untyped).returns(SystemCommand::Result) }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user