From 8a99cb2bd78f5163ced84510fd9bb5508724f230 Mon Sep 17 00:00:00 2001 From: Julian Kornberger Date: Wed, 13 Jul 2016 23:39:01 +0200 Subject: [PATCH] Remove junk code --- main.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/main.go b/main.go index 2ef539d..7edcbf2 100644 --- a/main.go +++ b/main.go @@ -97,10 +97,6 @@ func onReceive(addr net.UDPAddr, res *data.ResponseData) { nodes.Update(nodeId, res) if val := res.Statistics; val != nil && statsDb != nil { - if node := res.NodeInfo; val != nil && statsDb != nil { - statsDb.Add(val, node) - } else { - statsDb.Add(val, nil) - } + statsDb.Add(val, res.NodeInfo) } }