From 9b31dbfb249a84f119d84877648403a2fa975ecc Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 1 Mar 2023 11:52:42 +0100 Subject: [PATCH] upstream: drop unnecessary network nil check Remnant from multi-upstream. --- upstream.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/upstream.go b/upstream.go index 28cc6db..0586d80 100644 --- a/upstream.go +++ b/upstream.go @@ -978,9 +978,6 @@ func (uc *upstreamConn) handleMessage(ctx context.Context, msg *irc.Message) err uc.updateMonitor() uc.forEachDownstream(func(dc *downstreamConn) { - if dc.network == nil { - return - } msgs := xirc.GenerateIsupport(dc.srv.prefix(), dc.nick, downstreamIsupport) for _, msg := range msgs { dc.SendMessage(msg)