From 6414f00df7c5e838b7213ef4b4e40a666ef4d57f Mon Sep 17 00:00:00 2001 From: Kent Gruber Date: Wed, 2 May 2018 11:48:26 -0400 Subject: [PATCH] replace q.Protos[name] += 1 with q.Protos[name]++ minor refactor from golint: should replace q.Protos[name] += 1 with q.Protos[name]++ --- packets/queue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packets/queue.go b/packets/queue.go index 8b21fe0a..4d79e85c 100644 --- a/packets/queue.go +++ b/packets/queue.go @@ -106,7 +106,7 @@ func (q *Queue) trackProtocols(pkt gopacket.Packet) { if _, found := q.Protos[name]; !found { q.Protos[name] = 1 } else { - q.Protos[name] += 1 + q.Protos[name]++ } q.Unlock() }