Skip to content

Commit

Permalink
cli/command/images: runImages: inline intermediate var
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Feb 3, 2024
1 parent 843951e commit 1328bb3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cli/command/image/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,10 @@ func runImages(ctx context.Context, dockerCli command.Cli, options imagesOptions
filters.Add("reference", options.matchName)
}

listOptions := image.ListOptions{
images, err := dockerCli.Client().ImageList(ctx, image.ListOptions{
All: options.all,
Filters: filters,
}

images, err := dockerCli.Client().ImageList(ctx, listOptions)
})
if err != nil {
return err
}
Expand Down

0 comments on commit 1328bb3

Please sign in to comment.