mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
logic flow change
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user