summaryrefslogtreecommitdiff
path: root/source/features/remove-upload-files-button.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/remove-upload-files-button.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/remove-upload-files-button.tsx')
-rw-r--r--source/features/remove-upload-files-button.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/features/remove-upload-files-button.tsx b/source/features/remove-upload-files-button.tsx
index a3442c6e..f95f0de4 100644
--- a/source/features/remove-upload-files-button.tsx
+++ b/source/features/remove-upload-files-button.tsx
@@ -2,7 +2,7 @@ import select from 'select-dom';
import features from '../libs/features';
import {getRepoURL} from '../libs/utils';
-function init() {
+function init(): false | void {
const uploadFilesButton = select(`.file-navigation a[href^="/${getRepoURL()}/upload"]`);
if (!uploadFilesButton) {
return false;