summaryrefslogtreecommitdiff
path: root/source/features/extend-diff-expander.tsx
diff options
context:
space:
mode:
authorGravatar Federico Brigante <github@bfred.it> 2019-11-08 23:58:27 +0700
committerGravatar GitHub <noreply@github.com> 2019-11-08 23:58:27 +0700
commit2d80172ffaee2e2290a43e42040f37bcc0fad820 (patch)
treed8b0016bccda101e41252f70864569747a9eb864 /source/features/extend-diff-expander.tsx
parent6501c8c4762b50fda239e46e84302488dfa1d992 (diff)
downloadrefined-github-2d80172ffaee2e2290a43e42040f37bcc0fad820.tar.gz
refined-github-2d80172ffaee2e2290a43e42040f37bcc0fad820.tar.zst
refined-github-2d80172ffaee2e2290a43e42040f37bcc0fad820.zip
Updates and lint (#2521)
Diffstat (limited to 'source/features/extend-diff-expander.tsx')
-rw-r--r--source/features/extend-diff-expander.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/features/extend-diff-expander.tsx b/source/features/extend-diff-expander.tsx
index 28338c30..cfca695a 100644
--- a/source/features/extend-diff-expander.tsx
+++ b/source/features/extend-diff-expander.tsx
@@ -5,7 +5,7 @@ import features from '../libs/features';
function expandDiff(event: DelegateEvent): void {
// Skip if the user clicked directly on the icon
- if (!(event.target as Element).closest('.js-expand')!) {
+ if (!(event.target as Element).closest('.js-expand')) {
select<HTMLAnchorElement>('.js-expand', event.delegateTarget)!.click();
}
}