From e994186a0cc087c79e1a8f593698a20623999536 Mon Sep 17 00:00:00 2001 From: Evan Su <48808396+HACKERALERT@users.noreply.github.com> Date: Thu, 17 Nov 2022 23:18:08 -0500 Subject: [PATCH] Add files via upload --- src/Picocrypt.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/Picocrypt.go b/src/Picocrypt.go index 3fcdc24..679a44b 100644 --- a/src/Picocrypt.go +++ b/src/Picocrypt.go @@ -942,13 +942,8 @@ func work() { } // Open a temporary .zip for writing - file, err := os.CreateTemp("", "*.zip") - if err != nil { // Error, fall back to output folder - inputFile = strings.TrimSuffix(outputFile, ".pcv") - file, err = os.Create(inputFile) - } else { // No issues, use the temporary .zip - inputFile = file.Name() - } + inputFile = strings.TrimSuffix(outputFile, ".pcv") + file, err := os.Create(inputFile) if err != nil { // Make sure file is writable accessDenied("Write") return