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 {