diff options
author | Valentin Rothberg <vrothberg@redhat.com> | 2022-03-21 13:44:09 +0100 |
---|---|---|
committer | Valentin Rothberg <vrothberg@redhat.com> | 2022-03-22 13:04:34 +0100 |
commit | bb6b69b4abe86601a8438a6708263174879b5c51 (patch) | |
tree | 35a34e879c7129ceaac8bac80bdbe7fa9faea631 /cmd/podman/images/build.go | |
parent | 070e401499c12d4bdc6e39eaa2498aeda9e96c82 (diff) | |
download | podman-bb6b69b4abe86601a8438a6708263174879b5c51.tar.gz podman-bb6b69b4abe86601a8438a6708263174879b5c51.tar.bz2 podman-bb6b69b4abe86601a8438a6708263174879b5c51.zip |
linter: enable wastedassign
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
Diffstat (limited to 'cmd/podman/images/build.go')
-rw-r--r-- | cmd/podman/images/build.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/podman/images/build.go b/cmd/podman/images/build.go index 729951a31..1f9e7ea9e 100644 --- a/cmd/podman/images/build.go +++ b/cmd/podman/images/build.go @@ -375,7 +375,7 @@ func buildFlagsWrapperToOptions(c *cobra.Command, contextDir string, flags *buil } } - cleanTmpFile := false + var cleanTmpFile bool flags.Authfile, cleanTmpFile = buildahUtil.MirrorToTempFileIfPathIsDescriptor(flags.Authfile) if cleanTmpFile { defer os.Remove(flags.Authfile) @@ -474,7 +474,7 @@ func buildFlagsWrapperToOptions(c *cobra.Command, contextDir string, flags *buil return nil, err } - format := "" + var format string flags.Format = strings.ToLower(flags.Format) switch { case strings.HasPrefix(flags.Format, buildahDefine.OCI): |