fix(lint): exclude common fire-and-forget patterns from errcheck

This commit is contained in:
Deivid Soto 2026-03-30 23:34:36 +02:00
parent 104820f4fe
commit c0fd8d3818
8 changed files with 25 additions and 12 deletions

View file

@ -171,7 +171,7 @@ func Save(cfg Config, path string) error {
}
if err := os.Rename(tmpPath, path); err != nil {
_ = os.Remove(tmpPath)
os.Remove(tmpPath)
return fmt.Errorf("rename config: %w", err)
}