From 9cdb7b377fef47e621a0a0cf5c1df321f1060605 Mon Sep 17 00:00:00 2001 From: Nick Taylor Date: Sun, 21 Apr 2019 01:48:07 -0400 Subject: Meta: Add explicit return types on all functions (#1943) Co-authored-by: Federico Brigante --- source/features/patch-diff-links.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/features/patch-diff-links.tsx') 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()) { -- cgit v1.2.3