Fix unchecked error on resp.Body.Close in genmodels

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2026-04-13 18:34:27 +02:00
parent fe8163b757
commit e42979e1ff

View File

@@ -96,7 +96,7 @@ func main() {
fmt.Fprintf(os.Stderr, "cannot fetch models: %v\n", err)
os.Exit(1)
}
defer resp.Body.Close()
defer func() { _ = resp.Body.Close() }()
if resp.StatusCode != http.StatusOK {
fmt.Fprintf(os.Stderr, "cannot fetch models: unexpected status %s\n", resp.Status)