Skip to content

Commit 699700e

Browse files
authored
Return empty array instead of nil array in writeXpending
1 parent f29ff4e commit 699700e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd_stream.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,7 @@ func writeXpending(
12741274
consumer *string,
12751275
) {
12761276
if len(g.pending) == 0 || count < 0 {
1277-
c.WriteLen(-1)
1277+
c.WriteLen(0)
12781278
return
12791279
}
12801280

@@ -1314,7 +1314,7 @@ func writeXpending(
13141314
}
13151315
}
13161316
if len(res) == 0 {
1317-
c.WriteLen(-1)
1317+
c.WriteLen(0)
13181318
return
13191319
}
13201320
c.WriteLen(len(res))

0 commit comments

Comments
 (0)