diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 044b94de..2483790f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,7 +27,7 @@ jobs: steps: - uses: actions/checkout@v4.1.7 - - uses: actions/setup-go@v5.0.1 + - uses: actions/setup-go@v5.0.2 with: go-version: "1.x" @@ -58,7 +58,7 @@ jobs: steps: - uses: actions/checkout@v4.1.7 - - uses: actions/setup-go@v5.0.1 + - uses: actions/setup-go@v5.0.2 id: go with: go-version: ${{ matrix.go-version }} @@ -85,7 +85,7 @@ jobs: steps: - uses: actions/checkout@v4.1.7 - - uses: actions/setup-go@v5.0.1 + - uses: actions/setup-go@v5.0.2 id: go with: go-version: "1.x" diff --git a/image.go b/image.go index 0b560457..614908c6 100644 --- a/image.go +++ b/image.go @@ -401,7 +401,7 @@ type ExportImagesOptions struct { // // See https://goo.gl/N9XlDn for more details. func (c *Client) ExportImages(opts ExportImagesOptions) error { - if opts.Names == nil || len(opts.Names) == 0 { + if len(opts.Names) == 0 { return ErrMustSpecifyNames } // API < 1.25 allows multiple name values