mirror of
https://github.com/containers/skopeo.git
synced 2025-08-09 10:28:23 +00:00
Satisfy staticcheck
> QF1008: could remove embedded field "dockerImageOptions" from selector (staticcheck) Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
parent
e8d9f916e0
commit
b78fa41e42
@ -200,8 +200,8 @@ func (opts *imageOptions) newSystemContext() (*types.SystemContext, error) {
|
|||||||
ctx.AuthFilePath = opts.shared.authFilePath
|
ctx.AuthFilePath = opts.shared.authFilePath
|
||||||
ctx.DockerDaemonHost = opts.dockerDaemonHost
|
ctx.DockerDaemonHost = opts.dockerDaemonHost
|
||||||
ctx.DockerDaemonCertPath = opts.dockerCertPath
|
ctx.DockerDaemonCertPath = opts.dockerCertPath
|
||||||
if opts.dockerImageOptions.authFilePath.Present() {
|
if opts.authFilePath.Present() {
|
||||||
ctx.AuthFilePath = opts.dockerImageOptions.authFilePath.Value()
|
ctx.AuthFilePath = opts.authFilePath.Value()
|
||||||
}
|
}
|
||||||
if opts.deprecatedTLSVerify != nil && opts.deprecatedTLSVerify.tlsVerify.Present() {
|
if opts.deprecatedTLSVerify != nil && opts.deprecatedTLSVerify.tlsVerify.Present() {
|
||||||
// If both this deprecated option and a non-deprecated option is present, we use the latter value.
|
// If both this deprecated option and a non-deprecated option is present, we use the latter value.
|
||||||
|
Loading…
Reference in New Issue
Block a user