mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-09-05 08:37:20 -04:00
Remove unneeded variable declaration
This commit is contained in:
@@ -100,8 +100,7 @@ func inputPasswordGen() string {
|
|||||||
func writeEntryCLI(targetLocation string, unencryptedEntry []string, hideSecrets bool) {
|
func writeEntryCLI(targetLocation string, unencryptedEntry []string, hideSecrets bool) {
|
||||||
if core.EntryIsNotEmpty(unencryptedEntry) {
|
if core.EntryIsNotEmpty(unencryptedEntry) {
|
||||||
// write the entry to the target location
|
// write the entry to the target location
|
||||||
joinedUnencryptedEntry := strings.Join(unencryptedEntry, "\n")
|
core.WriteEntry(targetLocation, []byte(strings.Join(unencryptedEntry, "\n")), GetRCWPassphrase())
|
||||||
core.WriteEntry(targetLocation, []byte(joinedUnencryptedEntry), GetRCWPassphrase())
|
|
||||||
// preview the entry
|
// preview the entry
|
||||||
fmt.Println(AnsiBold + "\nEntry Preview:" + core.AnsiReset)
|
fmt.Println(AnsiBold + "\nEntry Preview:" + core.AnsiReset)
|
||||||
EntryReader(unencryptedEntry, hideSecrets, true)
|
EntryReader(unencryptedEntry, hideSecrets, true)
|
||||||
|
|||||||
Reference in New Issue
Block a user