registry/search_endpoint_v1.go
Function newV1Endpoint
has 6 return statements (exceeds 4 allowed). Open
Open
func newV1Endpoint(index *registry.IndexInfo, headers http.Header) (*v1Endpoint, error) {
tlsConfig, err := newTLSConfig(index.Name, index.Secure)
if err != nil {
return nil, err
}
Method v1Endpoint.ping
has 5 return statements (exceeds 4 allowed). Open
Open
func (e *v1Endpoint) ping() (v1PingResult, error) {
if e.String() == IndexServer {
// Skip the check, we know this one is valid
// (and we never want to fallback to http in case of error)
return v1PingResult{}, nil