From f2f9c523f441b49d682795c01454167d68aae573 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Fri, 20 Dec 2024 19:44:36 -0500 Subject: [PATCH] Do not declare outputSlice variable in DecryptGPG --- core/gpg.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/gpg.go b/core/gpg.go index fac86a3..f633851 100644 --- a/core/gpg.go +++ b/core/gpg.go @@ -21,9 +21,8 @@ func DecryptGPG(targetLocation string) []string { fmt.Println(AnsiError + "Failed to decrypt \"" + targetLocation + "\" - Ensure it is a valid GPG-encrypted file and that you entered your passphrase correctly" + AnsiReset) os.Exit(ErrorDecryption) } - outputSlice := strings.Split(string(output), "\n") - return outputSlice + return strings.Split(string(output), "\n") } // EncryptGPG encrypts a slice of strings using GPG and returns the encrypted data as a byte slice.