diff --git a/registry/endpoint_v1.go b/registry/endpoint_v1.go index 832fdb95a4..2fc2ea0e74 100644 --- a/registry/endpoint_v1.go +++ b/registry/endpoint_v1.go @@ -124,9 +124,6 @@ func newV1EndpointFromStr(address string, tlsConfig *tls.Config, userAgent strin } endpoint := newV1Endpoint(*uri, tlsConfig, userAgent, metaHeaders) - if err != nil { - return nil, err - } return endpoint, nil }