Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Apr 15, 2024
1 parent c27e023 commit 2703b05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ func RemoveFileIfExists(filePath string) error {
if err != nil {
return fmt.Errorf("failed to remove file: %v", err)
}
} else if !os.IsNotExist(err) {
} else if err != nil && !os.IsNotExist(err) {
return fmt.Errorf("error checking file: %v", err)
}

Expand Down

0 comments on commit 2703b05

Please sign in to comment.