fix: suppress errcheck on Body.Close in tier probe
This commit is contained in:
@@ -20,7 +20,7 @@ const (
|
||||
type Info struct {
|
||||
Tier Tier `json:"tier"`
|
||||
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"`
|
||||
}
|
||||
|
||||
@@ -59,6 +59,6 @@ func probe(ctx context.Context, client *http.Client, url string) bool {
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
resp.Body.Close()
|
||||
_ = resp.Body.Close()
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user