fix(lint): resolve errcheck and bodyclose warnings for golangci-lint v2
This commit is contained in:
parent
64d31bf4ed
commit
104820f4fe
7 changed files with 13 additions and 10 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue