mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-08 13:54:28 +00:00
Fix linter
This commit is contained in:
parent
2433d867af
commit
5061e97018
@ -8,7 +8,6 @@ import (
|
||||
)
|
||||
|
||||
type golangReader struct {
|
||||
key string
|
||||
msgQueue chan []byte
|
||||
data []byte
|
||||
progress *api.ReadProgress
|
||||
@ -55,15 +54,13 @@ func (r *golangReader) Read(p []byte) (int, error) {
|
||||
|
||||
for len(r.data) == 0 {
|
||||
var ok bool
|
||||
select {
|
||||
case b, ok = <-r.msgQueue:
|
||||
if !ok {
|
||||
return 0, io.EOF
|
||||
}
|
||||
|
||||
r.data = b
|
||||
b, ok = <-r.msgQueue
|
||||
if !ok {
|
||||
return 0, io.EOF
|
||||
}
|
||||
|
||||
r.data = b
|
||||
|
||||
if len(r.data) > 0 {
|
||||
break
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user