fix(claude): explicitly close status HTTP response

This commit is contained in:
korkin25
2026-09-28 18:04:14 -04:00
committed by William Drake
parent f8984b8a93
commit 48970f61b4
@@ -151,7 +151,7 @@ func (s *ClaudeResetCreditService) query(ctx context.Context, id int64) (*Claude
if err != nil {
return nil, nil, infraerrors.ServiceUnavailable("CLAUDE_RESET_QUERY_FAILED", "reset status request failed")
}
defer resp.Body.Close()
defer func() { _ = resp.Body.Close() }()
if resp.StatusCode != http.StatusOK {
return nil, nil, infraerrors.New(http.StatusBadGateway, "CLAUDE_RESET_QUERY_FAILED", fmt.Sprintf("reset status upstream HTTP %d", resp.StatusCode))
}