From 46ed69eff1b0d1851b6eb13986979f006deb4f97 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Mon, 7 Feb 2022 13:34:58 +0100 Subject: [PATCH] Allow sending empty message Signed-off-by: Knut Ahlers --- main.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/main.go b/main.go index 1faa9e2..2effd49 100644 --- a/main.go +++ b/main.go @@ -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") }