Fixing ImageList Go code

Original: on line 18 we have `images, err := cli.ImageList(context.Background(), types.ImageListOptions{})` which gives us an error of:

```
# command-line-arguments
./main.go:12:2: ctx declared but not used
```

*Fix:* on line 18 we need to have `images, err := cli.ImageList(ctx, types.ImageListOptions{})`
This commit is contained in:
Andre Almar 2020-06-29 16:01:24 -03:00 committed by GitHub
parent 9fdc494820
commit 6f38ea561b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -471,7 +471,7 @@ func main() {
panic(err)
}
images, err := cli.ImageList(context.Background(), types.ImageListOptions{})
images, err := cli.ImageList(ctx, types.ImageListOptions{})
if err != nil {
panic(err)
}