mirror of
https://github.com/bettercap/bettercap
synced 2025-07-31 12:10:10 -07:00
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:
parent
f35a8b98ac
commit
6414f00df7
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue