diff --git a/cmd/membench/llm_client.go b/cmd/membench/llm_client.go index 6c62424da..a850ceafc 100644 --- a/cmd/membench/llm_client.go +++ b/cmd/membench/llm_client.go @@ -155,7 +155,7 @@ func (c *LLMClient) Complete(ctx context.Context, systemPrompt, userPrompt strin } respBody, lastErr = io.ReadAll(resp.Body) - resp.Body.Close() + _ = resp.Body.Close() if lastErr != nil { continue }