Do not print redundant newline after creating a notes-only entry

This commit is contained in:
2024-03-07 16:09:54 -05:00
parent 1e1a26b098
commit 609ef9bd8c
3 changed files with 1 additions and 2 deletions
-1
View File
@@ -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
-1
View File
@@ -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 + " ")
+1
View File
@@ -84,6 +84,7 @@ func StringGen(length int, complex bool, complexity float64) string {
extendedCharset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
}
// loop until a string of the desired complexity is generated
for {
// generate a random string
result := make([]byte, length)