Skip to content

Commit

Permalink
make tsc happy
Browse files Browse the repository at this point in the history
  • Loading branch information
immccn123 committed Aug 4, 2024
1 parent b473d4f commit 5c5ef18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/archive/src/lib/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ export default async function getPostList(
!(post.id in saved) || // 没有保存过亦如此
(post.recentReply && // 有回复并
(!saved[post.id] || // 上一次保存时没有回复或
saved[post.id] < post.recentReply.id)), // 存在更新的回复(该 id 随时间单调递增)
/* eslint-disable @typescript-eslint/no-non-null-assertion */
saved[post.id]! < post.recentReply.id)), // 存在更新的回复(该 id 随时间单调递增)
)
.map((post) => post.id);
}

0 comments on commit 5c5ef18

Please sign in to comment.