Remove unneeded variable declaration

This commit is contained in:
2025-05-04 18:09:50 -04:00
parent a144b2769d
commit 1180112967
+1 -2
View File
@@ -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)