cli/command/images: runImages: inline intermediate var

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2024-02-03 17:54:23 +01:00
parent 843951e84a
commit 1328bb3381
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 2 additions and 4 deletions

View File

@ -68,12 +68,10 @@ func runImages(ctx context.Context, dockerCli command.Cli, options imagesOptions
filters.Add("reference", options.matchName) filters.Add("reference", options.matchName)
} }
listOptions := image.ListOptions{ images, err := dockerCli.Client().ImageList(ctx, image.ListOptions{
All: options.all, All: options.all,
Filters: filters, Filters: filters,
} })
images, err := dockerCli.Client().ImageList(ctx, listOptions)
if err != nil { if err != nil {
return err return err
} }