forked from molecule-ai/molecule-core
Issue #1196: golangci-lint errcheck flags bare resp.Body.Close() calls because Body.Close() can return a non-nil error (e.g. when the server sent fewer bytes than Content-Length). All occurrences fixed: defer resp.Body.Close() → defer func() { _ = resp.Body.Close() }() resp.Body.Close() → _ = resp.Body.Close() 12 files affected across all Go packages — channels, handlers, middleware, provisioner, artifacts, and cmd. The body is already fully consumed at each call site, so the error is always safe to discard. 🤖 Generated with [Claude Code](https://claude.ai) Co-authored-by: Molecule AI Core-BE <core-be@agents.moleculesai.app> |
||
|---|---|---|
| .. | ||
| adapter.go | ||
| channels_test.go | ||
| discord_test.go | ||
| discord.go | ||
| lark_test.go | ||
| lark.go | ||
| manager.go | ||
| registry.go | ||
| secret_test.go | ||
| secret.go | ||
| slack_test.go | ||
| slack.go | ||
| telegram.go | ||