diff --git a/contrib/registry/eureka/client.go b/contrib/registry/eureka/client.go index 98a8b063e..231cb956c 100644 --- a/contrib/registry/eureka/client.go +++ b/contrib/registry/eureka/client.go @@ -328,7 +328,6 @@ func (e *Client) request(ctx context.Context, method string, params []string, in if output == nil { return false, nil } - data, err := io.ReadAll(resp.Body) if err != nil { return false, err @@ -337,6 +336,7 @@ func (e *Client) request(ctx context.Context, method string, params []string, in if err != nil { return false, err } + return false, nil } return false, fmt.Errorf("response error %d", resp.StatusCode) }