Skip to content

Commit

Permalink
Use os.Remove error. (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
ser-io authored Mar 19, 2024
1 parent 5d91233 commit 9265245
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ func tempFilename(pattern string) (string, error) {
return "", err
}
name := file.Name()
if os.Remove(name); err != nil {
if err := os.Remove(name); err != nil {
return "", err
}
return name, nil
Expand Down

0 comments on commit 9265245

Please sign in to comment.