Skip to content

Commit

Permalink
use the cleaner variable to get the result length
Browse files Browse the repository at this point in the history
  • Loading branch information
alicebob committed May 20, 2023
1 parent a3211de commit a946a99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd_sorted_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ func (m *Miniredis) cmdZMscore(c *server.Peer, cmd string, args []string) {
return
}

c.WriteLen(len(args) - 1)
c.WriteLen(len(members))
for _, member := range members {
if !db.ssetExists(key, member) {
c.WriteNull()
Expand Down

0 comments on commit a946a99

Please sign in to comment.