We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f2f3d1 commit 6fed32bCopy full SHA for 6fed32b
sortedset/dedupe.go
@@ -44,7 +44,7 @@ func Dedupe(dst, src []byte, size int) []byte {
44
}
45
46
func dedupeGeneric(dst, src []byte, size int) int {
47
- if len(src) <= size {
+ if len(src) == 0 {
48
return 0
49
50
0 commit comments