1
0
Fork 0
mirror of https://github.com/Luzifer/mqttcli.git synced 2024-12-20 10:31:18 +00:00

Allow sending empty message

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2022-02-07 13:34:58 +01:00
parent f73625ba5b
commit 46ed69eff1
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -81,10 +81,6 @@ func main() {
switch cmd {
case "pub":
if cfg.Message == "" {
log.Fatal("Empty message on publish")
}
if err := publish(client); err != nil {
log.WithError(err).Fatal("Failed to publish message")
}