cli/command/container: legacyWaitExitOrRemoved rm intermediate var

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2024-06-09 14:11:47 +02:00
parent 0d4de2392b
commit 1a83595c7c
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 4 additions and 4 deletions

View File

@ -68,11 +68,11 @@ func legacyWaitExitOrRemoved(ctx context.Context, apiClient client.APIClient, co
f := filters.NewArgs()
f.Add("type", "container")
f.Add("container", containerID)
options := types.EventsOptions{
Filters: f,
}
eventCtx, cancel := context.WithCancel(ctx)
eventq, errq := apiClient.Events(eventCtx, options)
eventq, errq := apiClient.Events(eventCtx, types.EventsOptions{
Filters: f,
})
eventProcessor := func(e events.Message) bool {
stopProcessing := false