mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-06 01:07:06 +08:00
go lint
This commit is contained in:
@@ -13,6 +13,7 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Payload stores redis.Reply or error
|
||||
type Payload struct {
|
||||
Data redis.Reply
|
||||
Err error
|
||||
@@ -71,13 +72,13 @@ func parse0(reader io.Reader, ch chan<- *Payload) {
|
||||
}
|
||||
close(ch)
|
||||
return
|
||||
} else { // protocol err, reset read state
|
||||
ch <- &Payload{
|
||||
Err: err,
|
||||
}
|
||||
state = readState{}
|
||||
continue
|
||||
}
|
||||
// protocol err, reset read state
|
||||
ch <- &Payload{
|
||||
Err: err,
|
||||
}
|
||||
state = readState{}
|
||||
continue
|
||||
}
|
||||
|
||||
// parse line
|
||||
|
Reference in New Issue
Block a user