Skip to content

Commit 6f33d80

Browse files
committed
If there are no bits back, we get a nil array response, not a zero-length one.
This was causing `go test` to fail.
1 parent d31c64b commit 6f33d80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bitmap_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func Test_bitsToArray(t *testing.T) {
1919
{
2020
name: "2",
2121
bits: []byte{},
22-
want: []int{},
22+
want: nil,
2323
},
2424
{
2525
name: "3",

0 commit comments

Comments
 (0)