1
0
mirror of https://github.com/Luzifer/mqttcli.git synced 2024-09-18 23:42:58 +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")
}