Remove unnecessary if condition.

v0.5
Martin Dosch 2 years ago
parent c8dde8963f
commit 19ee89197e
No known key found for this signature in database
GPG Key ID: 52A57CFCE13D657D

@ -270,8 +270,8 @@ func main() {
// Also for listening mode and Ox key handling.
if !*flagInteractive && !*flagListen && *flagHTTPUpload == "" &&
!*flagOxDeleteNodes && *flagOxImportPrivKey == "" &&
!*flagOxGenPrivKeyX25519 && !*flagOxGenPrivKeyRSA {
if message == "" {
!*flagOxGenPrivKeyX25519 && !*flagOxGenPrivKeyRSA &&
message == "" {
scanner := bufio.NewScanner(os.Stdin)
for scanner.Scan() {
@ -289,7 +289,6 @@ func main() {
}
}
}
}
// Remove invalid code points.
message = validUTF8(message)

Loading…
Cancel
Save