remove unnecessary if-conditition (reminiscent from a previous Yjs version)

This commit is contained in:
Kevin Jahns 2021-04-29 20:25:57 +02:00
parent 5244755879
commit 4e343ccace

View File

@ -196,7 +196,7 @@ export const createDeleteSetFromStructStore = ss => {
const clock = struct.id.clock
let len = struct.length
if (i + 1 < structs.length) {
for (let next = structs[i + 1]; i + 1 < structs.length && next.id.clock === clock + len && next.deleted; next = structs[++i + 1]) {
for (let next = structs[i + 1]; i + 1 < structs.length && next.deleted; next = structs[++i + 1]) {
len += next.length
}
}