fix: suppress errcheck on Body.Close in tier probe
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user