From b78fa41e4273fface7403b7d980ce0875efeba12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Mon, 24 Mar 2025 19:28:45 +0100 Subject: [PATCH] Satisfy staticcheck MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > QF1008: could remove embedded field "dockerImageOptions" from selector (staticcheck) Should not change behavior. Signed-off-by: Miloslav Trmač --- cmd/skopeo/utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/skopeo/utils.go b/cmd/skopeo/utils.go index 5c9f397b..3008443b 100644 --- a/cmd/skopeo/utils.go +++ b/cmd/skopeo/utils.go @@ -200,8 +200,8 @@ func (opts *imageOptions) newSystemContext() (*types.SystemContext, error) { ctx.AuthFilePath = opts.shared.authFilePath ctx.DockerDaemonHost = opts.dockerDaemonHost ctx.DockerDaemonCertPath = opts.dockerCertPath - if opts.dockerImageOptions.authFilePath.Present() { - ctx.AuthFilePath = opts.dockerImageOptions.authFilePath.Value() + if opts.authFilePath.Present() { + ctx.AuthFilePath = opts.authFilePath.Value() } 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.