fix(lint): satisfy errcheck for io.Copy, json.Encode, Body.Close, deferred Close
Some checks failed
CI / Lint / Test / Vet (push) Failing after 3s
CI / Mirror to GitHub (push) Has been skipped

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Mathias Bergqvist
2026-04-19 07:15:35 +02:00
parent 99d523189f
commit a67106026f
4 changed files with 7 additions and 7 deletions

View File

@@ -73,7 +73,7 @@ func Read(sessionsDir, sessionID string) ([]Entry, error) {
if err != nil {
return nil, fmt.Errorf("open session log: %w", err)
}
defer f.Close()
defer f.Close() //nolint:errcheck
var entries []Entry
scanner := bufio.NewScanner(f)