Skip to content

Commit

Permalink
Path was already checked before the callback
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasdille committed Jul 11, 2024
1 parent 53d6ba0 commit 4bb6788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/uniget/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ func createPatchFileCallback(tool tool.Tool) func(path string) {
return
}

file, err := os.Create(filePath)
file, err := os.Create(filePath) // #nosec G304 -- File path was checked before callback
if err != nil {
logging.Error.Printfln("Unable to create file: %s", err)
return
Expand Down

0 comments on commit 4bb6788

Please sign in to comment.