Remove unnecessary zero initialization

This commit is contained in:
Simon Ser 2022-03-22 21:10:06 +01:00
parent 43371bf347
commit 09513e63fe

View File

@ -434,7 +434,7 @@ func (uc *upstreamConn) handleMessage(ctx context.Context, msg *irc.Message) err
delete(msg.Tags, "batch") delete(msg.Tags, "batch")
} }
var downstreamID uint64 = 0 var downstreamID uint64
if label != "" { if label != "" {
var labelOffset uint64 var labelOffset uint64
n, err := fmt.Sscanf(label, "sd-%d-%d", &downstreamID, &labelOffset) n, err := fmt.Sscanf(label, "sd-%d-%d", &downstreamID, &labelOffset)