From 5ceed3059f340176fbe134c4d7bdfc577bb6db97 Mon Sep 17 00:00:00 2001 From: Silvin Lubecki Date: Tue, 2 Apr 2019 11:24:19 +0200 Subject: [PATCH] cli/registry/client/fetcher.go:106:9: nilness: impossible condition: nil != nil (govet) Signed-off-by: Silvin Lubecki --- cli/registry/client/fetcher.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cli/registry/client/fetcher.go b/cli/registry/client/fetcher.go index e3d6cd6069..2060f99126 100644 --- a/cli/registry/client/fetcher.go +++ b/cli/registry/client/fetcher.go @@ -11,7 +11,7 @@ import ( "github.com/docker/distribution/manifest/schema2" "github.com/docker/distribution/reference" "github.com/docker/distribution/registry/api/errcode" - "github.com/docker/distribution/registry/api/v2" + v2 "github.com/docker/distribution/registry/api/v2" distclient "github.com/docker/distribution/registry/client" "github.com/docker/docker/registry" digest "github.com/opencontainers/go-digest" @@ -103,9 +103,6 @@ func pullManifestSchemaV2ImageConfig(ctx context.Context, dgst digest.Digest, re } verifier := dgst.Verifier() - if err != nil { - return nil, err - } if _, err := verifier.Write(configJSON); err != nil { return nil, err }