registry/newV1EndpointFromStr: rm dead code

> registry/endpoint_v1.go:127:9: nilness: impossible condition: nil != nil (govet)
> 	if err != nil {
>	       ^

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin 2019-08-05 19:30:22 -07:00 committed by Sebastiaan van Stijn
parent 7b85ed613d
commit 5c11740abb
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -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
}