fix: suppress errcheck on Body.Close in tier probe

This commit is contained in:
Mathias Bergqvist
2026-04-17 20:31:10 +02:00
parent d09f7fe7d8
commit fa6c084cf0

View File

@@ -20,7 +20,7 @@ const (
type Info struct { type Info struct {
Tier Tier `json:"tier"` Tier Tier `json:"tier"`
Label string `json:"label"` Label string `json:"label"`
AvailableModels []string `json:"available_models"` AvailableModels []string `json:"available_models"` // populated by callers as needed; Detect always returns nil
ManagedAgents bool `json:"managed_agents"` ManagedAgents bool `json:"managed_agents"`
} }
@@ -59,6 +59,6 @@ func probe(ctx context.Context, client *http.Client, url string) bool {
if err != nil { if err != nil {
return false return false
} }
resp.Body.Close() _ = resp.Body.Close()
return true return true
} }