🚨 消除Qodana警告

This commit is contained in:
目棃
2024-09-12 11:06:56 +08:00
parent 6b2d1a3a80
commit 611ae19c5e
2 changed files with 2 additions and 2 deletions

View File

@@ -88,7 +88,7 @@ watch(
async (value) => {
if (value) {
await new Promise((resolve) => setTimeout(resolve, 500));
const postList = document.getElementById(
const postList: HTMLElement | null = document.getElementById(
`post-collect-overlay-${props.collection.collection_id}`,
);
if (postList === null) return;

View File

@@ -168,7 +168,7 @@ async function listenSub(): Promise<UnlistenFn> {
}
async function share(): Promise<void> {
const replyDom = document.getElementById(replyId);
const replyDom: HTMLElement | null = document.getElementById(replyId);
if (replyDom === null) return;
await generateShareImg(replyId, replyDom, 3);
}