mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-30 05:42:44 -08:00
typecheck
This commit is contained in:
1 parent
4ba6bbabe8
commit
2b4db1be41
1 file changed
+3
-3
@@ -169,15 +169,15 @@ const mergeDraftsAndExtras = (
|
||||
|
||||
for (const extra of extraDrafts) {
|
||||
const extraTs = extra.mEvent.getTs();
|
||||
while (resultIdx < resultDrafts.length && resultDrafts[resultIdx].mEvent.getTs() <= extraTs) {
|
||||
mergedDrafts.push(resultDrafts[resultIdx]);
|
||||
while (resultIdx < resultDrafts.length && resultDrafts[resultIdx]!.mEvent.getTs() <= extraTs) {
|
||||
mergedDrafts.push(resultDrafts[resultIdx]!);
|
||||
resultIdx += 1;
|
||||
}
|
||||
mergedDrafts.push(extra);
|
||||
}
|
||||
|
||||
while (resultIdx < resultDrafts.length) {
|
||||
mergedDrafts.push(resultDrafts[resultIdx]);
|
||||
mergedDrafts.push(resultDrafts[resultIdx]!);
|
||||
resultIdx += 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user