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 + " ") diff --git a/src/offline/utilitiesMisc.go b/src/offline/utilitiesMisc.go index 3663eb7..c014408 100644 --- a/src/offline/utilitiesMisc.go +++ b/src/offline/utilitiesMisc.go @@ -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)