replace q.Protos[name] += 1 with q.Protos[name]++

minor refactor from golint:
should replace q.Protos[name] += 1 with q.Protos[name]++
This commit is contained in:
Kent Gruber 2018-05-02 11:48:26 -04:00
parent f35a8b98ac
commit 6414f00df7

View file

@ -106,7 +106,7 @@ func (q *Queue) trackProtocols(pkt gopacket.Packet) {
if _, found := q.Protos[name]; !found { if _, found := q.Protos[name]; !found {
q.Protos[name] = 1 q.Protos[name] = 1
} else { } else {
q.Protos[name] += 1 q.Protos[name]++
} }
q.Unlock() q.Unlock()
} }