Skip to content

Commit 6b90837

Browse files
committed
cli/command: AddPlatformFlag: suppress unhandled error
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent fb61156 commit 6b90837

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cli/command/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ func PruneFilters(dockerCli Cli, pruneFilters filters.Args) filters.Args {
199199
// AddPlatformFlag adds `platform` to a set of flags for API version 1.32 and later.
200200
func AddPlatformFlag(flags *pflag.FlagSet, target *string) {
201201
flags.StringVar(target, "platform", os.Getenv("DOCKER_DEFAULT_PLATFORM"), "Set platform if server is multi-platform capable")
202-
flags.SetAnnotation("platform", "version", []string{"1.32"})
202+
_ = flags.SetAnnotation("platform", "version", []string{"1.32"})
203203
}
204204

205205
// ValidateOutputPath validates the output paths of the `export` and `save` commands.

0 commit comments

Comments
 (0)