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

Don't create empty map for nil values

This commit is contained in:
Vladimir Mihailenco
2020-02-02 10:52:57 +02:00
parent 0fdd200bc7
commit 99cd690a70
2 changed files with 10 additions and 8 deletions

View File

@ -3598,7 +3598,7 @@ var _ = Describe("Commands", func() {
Stream: "stream",
Messages: []redis.XMessage{
{ID: "1-0", Values: map[string]interface{}{"uno": "un"}},
{ID: "2-0", Values: map[string]interface{}{}},
{ID: "2-0", Values: nil},
{ID: "3-0", Values: map[string]interface{}{"tres": "troix"}},
}},
}))