mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-06-26 16:24:54 +00:00
Fix the linter error
This commit is contained in:
parent
41527c1be5
commit
966c9dbf55
@ -82,7 +82,7 @@ func (d dissecting) Dissect(b *bufio.Reader, reader api.TcpReader, options *api.
|
|||||||
frame, err := r.ReadFrame()
|
frame, err := r.ReadFrame()
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
// We must read until we see an EOF... very important!
|
// We must read until we see an EOF... very important!
|
||||||
return nil
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
switch f := frame.(type) {
|
switch f := frame.(type) {
|
||||||
|
@ -54,8 +54,8 @@ func (reader *tcpReader) run(options *api.TrafficFilteringOptions, wg *sync.Wait
|
|||||||
reader.reqResMatcher = reader.parent.reqResMatchers[i]
|
reader.reqResMatcher = reader.parent.reqResMatchers[i]
|
||||||
reader.counterPair = reader.parent.counterPairs[i]
|
reader.counterPair = reader.parent.counterPairs[i]
|
||||||
b := bufio.NewReader(reader)
|
b := bufio.NewReader(reader)
|
||||||
extension.Dissector.Dissect(b, reader, options)
|
err := extension.Dissector.Dissect(b, reader, options)
|
||||||
if reader.parent.protocol != nil {
|
if err == nil || reader.parent.protocol != nil {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
reader.exhaustBuffer = true
|
reader.exhaustBuffer = true
|
||||||
|
Loading…
Reference in New Issue
Block a user