registry/newV1EndpointFromStr: rm dead code
> registry/endpoint_v1.go:127:9: nilness: impossible condition: nil != nil (govet)
> 	if err != nil {
>	       ^
@@ -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
}
