fix(server): silence errcheck on deferred Body.Close

This commit is contained in:
2026-04-18 21:48:07 +00:00
parent 4c5b4d1790
commit 8fbf355305
+1 -1
View File
@@ -18,7 +18,7 @@ func TestHealthz(t *testing.T) {
if err != nil {
t.Fatalf("GET /healthz: %v", err)
}
defer resp.Body.Close()
defer func() { _ = resp.Body.Close() }()
if resp.StatusCode != http.StatusOK {
t.Errorf("status = %d, want 200", resp.StatusCode)