From dcf37468dca1e0d47fb4e66a6e9d74fd05a50710 Mon Sep 17 00:00:00 2001 From: Abirdcfly Date: Mon, 8 Aug 2022 16:24:09 +0800 Subject: [PATCH] delete minor unreachable code caused by t.Fatal Signed-off-by: Abirdcfly --- server/topic_test.go | 1 - 1 file changed, 1 deletion(-) diff --git a/server/topic_test.go b/server/topic_test.go index e900a76f8..c8a6125b8 100644 --- a/server/topic_test.go +++ b/server/topic_test.go @@ -179,7 +179,6 @@ func (h *Hub) testHubLoop(t *testing.T, results map[string][]*ServerComMessage, for msg := range h.routeSrv { if msg.RcptTo == "" { t.Fatal("Hub.route received a message without addressee.") - break } results[msg.RcptTo] = append(results[msg.RcptTo], msg) }