From d2bc8f53f7dd99b1906e139813bf2ed2f8a433f5 Mon Sep 17 00:00:00 2001 From: Ivan Milchev Date: Thu, 14 Mar 2024 14:47:11 +0100 Subject: [PATCH] test extended linting Signed-off-by: Ivan Milchev --- cnquery.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/cnquery.go b/cnquery.go index 22b8f7f29d..7da795fe69 100644 --- a/cnquery.go +++ b/cnquery.go @@ -67,9 +67,6 @@ func GetLatestReleaseName(releaseUrl string, client *http.Client) (string, error } body, err := io.ReadAll(resp.Body) - if err != nil { - return "", fmt.Errorf("error reading response body: %v", err) - } var release Release if err := json.Unmarshal(body, &release); err != nil {