diff options
author | 2019-11-08 23:58:27 +0700 | |
---|---|---|
committer | 2019-11-08 23:58:27 +0700 | |
commit | 2d80172ffaee2e2290a43e42040f37bcc0fad820 (patch) | |
tree | d8b0016bccda101e41252f70864569747a9eb864 /source/features/extend-diff-expander.tsx | |
parent | 6501c8c4762b50fda239e46e84302488dfa1d992 (diff) | |
download | refined-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.tsx | 2 |
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(); } } |