summaryrefslogtreecommitdiff
path: root/source/features/hide-useless-comments.tsx
diff options
context:
space:
mode:
authorGravatar Federico Brigante <github@bfred.it> 2019-08-31 01:26:28 +0700
committerGravatar GitHub <noreply@github.com> 2019-08-31 01:26:28 +0700
commit8d0393542bd712d7bb7f93874118dedd07b62c7b (patch)
tree0a139195466ba76bf5abdd6cbb979e55dcf3322a /source/features/hide-useless-comments.tsx
parent0ca864af6da9cac9f503e4abd0c58b60fbe1abc6 (diff)
downloadrefined-github-22fadd2fa6fb5bb4dac88ca1fc81a69c1dc8ec97.tar.gz
refined-github-22fadd2fa6fb5bb4dac88ca1fc81a69c1dc8ec97.tar.zst
refined-github-22fadd2fa6fb5bb4dac88ca1fc81a69c1dc8ec97.zip
Update dependencies and lint (#2391)19.8.31
Diffstat (limited to 'source/features/hide-useless-comments.tsx')
-rw-r--r--source/features/hide-useless-comments.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/features/hide-useless-comments.tsx b/source/features/hide-useless-comments.tsx
index 98accf05..df40a45f 100644
--- a/source/features/hide-useless-comments.tsx
+++ b/source/features/hide-useless-comments.tsx
@@ -17,7 +17,7 @@ function init(): void {
}
// Ensure that they're not by VIPs (owner, collaborators, etc)
- const comment = commentText.closest('.js-timeline-item') as HTMLElement;
+ const comment = commentText.closest<HTMLElement>('.js-timeline-item')!;
if (select.exists('.timeline-comment-label', comment)) {
continue;
}