diff --git a/cmd/ctr/commands/images/images.go b/cmd/ctr/commands/images/images.go index a68d2168d..00fbb5387 100644 --- a/cmd/ctr/commands/images/images.go +++ b/cmd/ctr/commands/images/images.go @@ -238,11 +238,11 @@ var checkCommand = cli.Command{ for _, image := range imageList { var ( - status string = "complete" + status = "complete" size string requiredSize int64 presentSize int64 - complete bool = true + complete = true ) available, required, present, missing, err := images.Check(ctx, contentStore, image.Target(), platforms.Default()) diff --git a/pkg/cri/io/helpers.go b/pkg/cri/io/helpers.go index 4e86b6313..bf99e9538 100644 --- a/pkg/cri/io/helpers.go +++ b/pkg/cri/io/helpers.go @@ -46,9 +46,9 @@ const ( // Stdin stream type. Stdin StreamType = "stdin" // Stdout stream type. - Stdout StreamType = StreamType(runtime.Stdout) + Stdout = StreamType(runtime.Stdout) // Stderr stream type. - Stderr StreamType = StreamType(runtime.Stderr) + Stderr = StreamType(runtime.Stderr) ) type wgCloser struct { diff --git a/remotes/docker/fetcher_test.go b/remotes/docker/fetcher_test.go index 6a4935339..07cc90a24 100644 --- a/remotes/docker/fetcher_test.go +++ b/remotes/docker/fetcher_test.go @@ -193,7 +193,7 @@ func TestDockerFetcherOpen(t *testing.T) { req := f.request(host, http.MethodGet) got, err := f.open(context.TODO(), req, "", 0) - assert.Equal(t, tt.wantErr, (err != nil)) + assert.Equal(t, tt.wantErr, err != nil) assert.Equal(t, tt.want, got) assert.Equal(t, tt.retries, 0) if tt.wantErr {