logic flow change

This commit is contained in:
Derek Collison
2015-12-01 12:48:10 -08:00
parent f04e44fad7
commit c9feb8f354

View File

@@ -42,15 +42,9 @@ func main() {
log.Fatalf("Error, passwords do not match\n")
}
password = string(bytePassword)
}
if password == "" {
password = genPassword()
}
if *pw {
fmt.Printf("\n")
} else {
password = genPassword()
fmt.Printf("pass: %s\n", password)
}