From 1180112967b67041edc07f82cd9fbf83682dee11 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Sun, 4 May 2025 18:09:50 -0400 Subject: [PATCH] Remove unneeded variable declaration --- src/cli/utilitiesMisc.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cli/utilitiesMisc.go b/src/cli/utilitiesMisc.go index f04eb00..000244e 100644 --- a/src/cli/utilitiesMisc.go +++ b/src/cli/utilitiesMisc.go @@ -100,8 +100,7 @@ func inputPasswordGen() string { func writeEntryCLI(targetLocation string, unencryptedEntry []string, hideSecrets bool) { if core.EntryIsNotEmpty(unencryptedEntry) { // write the entry to the target location - joinedUnencryptedEntry := strings.Join(unencryptedEntry, "\n") - core.WriteEntry(targetLocation, []byte(joinedUnencryptedEntry), GetRCWPassphrase()) + core.WriteEntry(targetLocation, []byte(strings.Join(unencryptedEntry, "\n")), GetRCWPassphrase()) // preview the entry fmt.Println(AnsiBold + "\nEntry Preview:" + core.AnsiReset) EntryReader(unencryptedEntry, hideSecrets, true)