From 7b3b275ad9a1b1409c56310c0b8ab286bef1f75f Mon Sep 17 00:00:00 2001
From: Nick Taylor <nick@iamdeveloper.com>
Date: Wed, 17 Apr 2019 08:42:27 -0400
Subject: Enable strict-mode for TypeScript (#1783)

Co-authored-by: Federico Brigante <github@bfred.it>
---
 source/features/patch-diff-links.tsx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(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 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>
 	);
 }
-- 
cgit v1.2.3

