Skip to content

Commit 6fed32b

Browse files
author
Achille Roussel
committed
fix generic dedupe
1 parent 8f2f3d1 commit 6fed32b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sortedset/dedupe.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func Dedupe(dst, src []byte, size int) []byte {
4444
}
4545

4646
func dedupeGeneric(dst, src []byte, size int) int {
47-
if len(src) <= size {
47+
if len(src) == 0 {
4848
return 0
4949
}
5050

0 commit comments

Comments
 (0)