From 228498fe83c35678f1c4908c5d2d4c9da6a19ac3 Mon Sep 17 00:00:00 2001 From: hugo-ccabral Date: Thu, 9 Jul 2026 17:16:49 -0300 Subject: [PATCH] fix(fast-deploy): check res.Body.Close in cfkv (errcheck lint) golangci-lint errcheck flagged the deferred res.Body.Close() in the index:live REST GET. Discard the return explicitly. No behavior change. Co-Authored-By: Claude Opus 4.8 --- internal/deploy/cfkv.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/deploy/cfkv.go b/internal/deploy/cfkv.go index 7ad8d2e..70a7017 100644 --- a/internal/deploy/cfkv.go +++ b/internal/deploy/cfkv.go @@ -32,7 +32,7 @@ func fetchKVLiveID(ctx context.Context, accountID, apiToken, namespaceID string) if err != nil { return "", err } - defer res.Body.Close() + defer func() { _ = res.Body.Close() }() if res.StatusCode == http.StatusNotFound { return "", nil