1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

Fix golangci

This commit is contained in:
Vladimir Mihailenco
2020-07-16 10:01:27 +03:00
parent 14c843ef89
commit 38c87c1f84
8 changed files with 41 additions and 48 deletions

View File

@ -304,7 +304,7 @@ func (cmd *Cmd) readReply(rd *proto.Reader) error {
return cmd.err
}
// Implements proto.MultiBulkParse
// sliceParser implements proto.MultiBulkParse.
func sliceParser(rd *proto.Reader, n int64) (interface{}, error) {
vals := make([]interface{}, n)
for i := 0; i < len(vals); i++ {
@ -1072,7 +1072,7 @@ func (cmd *XMessageSliceCmd) readReply(rd *proto.Reader) error {
return nil
}
// Implements proto.MultiBulkParse
// xMessageSliceParser implements proto.MultiBulkParse.
func xMessageSliceParser(rd *proto.Reader, n int64) (interface{}, error) {
msgs := make([]XMessage, n)
for i := 0; i < len(msgs); i++ {
@ -1107,7 +1107,7 @@ func xMessageSliceParser(rd *proto.Reader, n int64) (interface{}, error) {
return msgs, nil
}
// Implements proto.MultiBulkParse
// stringInterfaceMapParser implements proto.MultiBulkParse.
func stringInterfaceMapParser(rd *proto.Reader, n int64) (interface{}, error) {
m := make(map[string]interface{}, n/2)
for i := int64(0); i < n; i += 2 {