From 5bc0ff96c0071fb64c32cf57761ced0e02e71344 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Thu, 7 Mar 2024 16:09:54 -0500 Subject: [PATCH] Do not print redundant newline after creating a notes-only entry --- src/cli/add.go | 1 - src/cli/utilitiesMisc.go | 1 - 2 files changed, 2 deletions(-) diff --git a/src/cli/add.go b/src/cli/add.go index bb02e76..a3b2413 100644 --- a/src/cli/add.go +++ b/src/cli/add.go @@ -38,7 +38,6 @@ func AddEntry(targetLocation string, hidePassword bool, entryType uint8) { } else { note := newNote() unencryptedEntry = append([]string{"", "", ""}, note...) - fmt.Println() } // ensure entry data is not empty diff --git a/src/cli/utilitiesMisc.go b/src/cli/utilitiesMisc.go index 7fb317d..7669afe 100644 --- a/src/cli/utilitiesMisc.go +++ b/src/cli/utilitiesMisc.go @@ -28,7 +28,6 @@ func inputHidden(prompt string) string { // inputInt prompts the user for input and returns the input as an integer func inputInt(prompt string) int { - // loop until a valid integer is entered for { fmt.Print("\n" + prompt + " ")