mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-06-26 08:14:42 +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()
|
||||
if err == io.EOF {
|
||||
// We must read until we see an EOF... very important!
|
||||
return nil
|
||||
return err
|
||||
}
|
||||
|
||||
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.counterPair = reader.parent.counterPairs[i]
|
||||
b := bufio.NewReader(reader)
|
||||
extension.Dissector.Dissect(b, reader, options)
|
||||
if reader.parent.protocol != nil {
|
||||
err := extension.Dissector.Dissect(b, reader, options)
|
||||
if err == nil || reader.parent.protocol != nil {
|
||||
break
|
||||
}
|
||||
reader.exhaustBuffer = true
|
||||
|
Loading…
Reference in New Issue
Block a user