Skip to content

Commit 5c5ef18

Browse files
committed
make tsc happy
1 parent b473d4f commit 5c5ef18

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/archive/src/lib/list.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ export default async function getPostList(
7272
!(post.id in saved) || // 没有保存过亦如此
7373
(post.recentReply && // 有回复并
7474
(!saved[post.id] || // 上一次保存时没有回复或
75-
saved[post.id] < post.recentReply.id)), // 存在更新的回复(该 id 随时间单调递增)
75+
/* eslint-disable @typescript-eslint/no-non-null-assertion */
76+
saved[post.id]! < post.recentReply.id)), // 存在更新的回复(该 id 随时间单调递增)
7677
)
7778
.map((post) => post.id);
7879
}

0 commit comments

Comments
 (0)