Quellcode durchsuchen

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>
Kir Kolyshkin vor 6 Jahren
Ursprung
Commit
5c11740abb
1 geänderte Dateien mit 0 neuen und 3 gelöschten Zeilen
  1. 0 3
      registry/endpoint_v1.go

+ 0 - 3
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
 }