Clean up some lint warnings
I ran golangci-lint and it pointed out a few things to clean up.
This commit is contained in:
1 parent
28e482af14
commit
34dc4dabce
7 files changed
+9
-9
No files matched your search
+1
-1
@@ -147,7 +147,7 @@ func (p *Pcap) sniff(readHandle *pcap.Handle, consumer Consumer) {
|
||||
// in order to prevent the next capture from
|
||||
// overwriting the data
|
||||
pktLen := len(pkt)
|
||||
pktCopy := make([]byte, pktLen, pktLen)
|
||||
pktCopy := make([]byte, pktLen)
|
||||
copy(pktCopy, pkt)
|
||||
|
||||
fop.Process(pktCopy, dec, false)
|
||||
|
||||
Reference in new issue
Block a user