mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
Merge pull request #260 from picatz/minor-refactor-to-packets-queue
replace q.Protos[name] += 1 with q.Protos[name]++
This commit is contained in:
commit
a87d84be76
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 {
|
||||
q.Protos[name] = 1
|
||||
} else {
|
||||
q.Protos[name] += 1
|
||||
q.Protos[name]++
|
||||
}
|
||||
q.Unlock()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue