mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-08-27 20:36:29 -04:00
Do not print redundant newline after creating a notes-only entry
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 + " ")
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user