fix(lint): resolve all errcheck violations in ingestion module
All checks were successful
cd / Build and deploy (push) Successful in 10s
CI / Lint / Test / Vet (push) Successful in 10s
CI / Mirror to GitHub (push) Successful in 3s

This commit is contained in:
Mathias Bergqvist
2026-04-23 16:20:59 +02:00
parent a6c39e8691
commit 3607920601
6 changed files with 15 additions and 15 deletions

View File

@@ -47,7 +47,7 @@ func readFrontmatter(path, fallbackSlug string) (title string, aliases []string)
if err != nil {
return
}
defer f.Close()
defer f.Close() //nolint:errcheck
scanner := bufio.NewScanner(f)
inFM := false

View File

@@ -32,9 +32,9 @@ func AppendLog(brainDir, source string, pages, warnings []string, date string) e
if err != nil {
return fmt.Errorf("open log: %w", err)
}
defer f.Close()
if _, err = f.WriteString(sb.String()); err != nil {
f.Close() //nolint:errcheck
return fmt.Errorf("write log: %w", err)
}
return nil
return f.Close()
}