diff options
author | 2019-04-21 01:48:07 -0400 | |
---|---|---|
committer | 2019-04-21 13:48:07 +0800 | |
commit | 9cdb7b377fef47e621a0a0cf5c1df321f1060605 (patch) | |
tree | c4c7eea04da66d38ebbf0b8509e4cd2a17c34023 /source/features/patch-diff-links.tsx | |
parent | dea7e47bcf61640f4dee9e195fed0ad1ae938781 (diff) | |
download | refined-github-9cdb7b377fef47e621a0a0cf5c1df321f1060605.tar.gz refined-github-9cdb7b377fef47e621a0a0cf5c1df321f1060605.tar.zst refined-github-9cdb7b377fef47e621a0a0cf5c1df321f1060605.zip |
Meta: Add explicit return types on all functions (#1943)
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.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/features/patch-diff-links.tsx b/source/features/patch-diff-links.tsx index a8b945eb..d2485877 100644 --- a/source/features/patch-diff-links.tsx +++ b/source/features/patch-diff-links.tsx @@ -3,7 +3,7 @@ import select from 'select-dom'; import features from '../libs/features'; import {isPRCommit} from '../libs/page-detect'; -function init() { +function init(): void { let commitUrl = location.pathname.replace(/\/$/, ''); if (isPRCommit()) { |