summaryrefslogtreecommitdiff
path: root/source/features/patch-diff-links.tsx
diff options
context:
space:
mode:
authorGravatar Nick Taylor <nick@iamdeveloper.com> 2019-04-17 08:42:27 -0400
committerGravatar Federico Brigante <github@bfred.it> 2019-04-17 20:42:27 +0800
commit7b3b275ad9a1b1409c56310c0b8ab286bef1f75f (patch)
tree90de3c1682fbad57234cffa2e71f51baab7680c4 /source/features/patch-diff-links.tsx
parent438f98c7d7760b5e24ebf0bd9634d0c447226196 (diff)
downloadrefined-github-7b3b275ad9a1b1409c56310c0b8ab286bef1f75f.tar.gz
refined-github-7b3b275ad9a1b1409c56310c0b8ab286bef1f75f.tar.zst
refined-github-7b3b275ad9a1b1409c56310c0b8ab286bef1f75f.zip
Enable strict-mode for TypeScript (#1783)
Co-authored-by: Federico Brigante <github@bfred.it>
Diffstat (limited to 'source/features/patch-diff-links.tsx')
-rw-r--r--source/features/patch-diff-links.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/features/patch-diff-links.tsx b/source/features/patch-diff-links.tsx
index 76cca95b..a8b945eb 100644
--- a/source/features/patch-diff-links.tsx
+++ b/source/features/patch-diff-links.tsx
@@ -10,11 +10,11 @@ function init() {
commitUrl = commitUrl.replace(/\/pull\/\d+\/commits/, '/commit');
}
- select('.commit-meta > :last-child').append(
- <span class="sha-block patch-diff-links">
- <a href={`${commitUrl}.patch`} class="sha">patch</a>
+ select('.commit-meta > :last-child')!.append(
+ <span className="sha-block patch-diff-links">
+ <a href={`${commitUrl}.patch`} className="sha">patch</a>
{ ' ' /* Workaround for: JSX eats whitespace between elements */ }
- <a href={`${commitUrl}.diff`} class="sha">diff</a>
+ <a href={`${commitUrl}.diff`} className="sha">diff</a>
</span>
);
}