From 4bb6788e79c3d7a174918945694f71f578140d30 Mon Sep 17 00:00:00 2001 From: Nicholas Dille Date: Thu, 11 Jul 2024 13:51:53 +0200 Subject: [PATCH] Path was already checked before the callback --- cmd/uniget/install.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/uniget/install.go b/cmd/uniget/install.go index 7a90cd94..f92dd841 100644 --- a/cmd/uniget/install.go +++ b/cmd/uniget/install.go @@ -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