Skip to content

Commit

Permalink
🚨 消除Qodana警告
Browse files Browse the repository at this point in the history
  • Loading branch information
BTMuli committed Sep 12, 2024
1 parent 6b2d1a3 commit 611ae19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/post/tpo-collection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Check notice on line 94 in src/components/post/tpo-collection.vue

View workflow job for this annotation

GitHub Actions / Qodana for JS

Comparison of expressions having incompatible types

Condition is always false since types 'HTMLElement' and 'null' have no overlap
Expand Down
2 changes: 1 addition & 1 deletion src/components/postReply/tpr-reply.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Check notice on line 172 in src/components/postReply/tpr-reply.vue

View workflow job for this annotation

GitHub Actions / Qodana for JS

Comparison of expressions having incompatible types

Condition is always false since types 'HTMLElement' and 'null' have no overlap
await generateShareImg(replyId, replyDom, 3);
}
Expand Down

0 comments on commit 611ae19

Please sign in to comment.