From 8879ebefcbabc9df2eff41a1864ccfff568040c0 Mon Sep 17 00:00:00 2001
From: Federico Brigante <me@fregante.com>
Date: Tue, 20 Apr 2021 16:34:44 +0700
Subject: `fit-textareas`: Improve performance (#4222)

---
 source/features/use-first-commit-message-for-new-prs.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'source/features/use-first-commit-message-for-new-prs.tsx')

diff --git a/source/features/use-first-commit-message-for-new-prs.tsx b/source/features/use-first-commit-message-for-new-prs.tsx
index 372f35cc..56a91fb9 100644
--- a/source/features/use-first-commit-message-for-new-prs.tsx
+++ b/source/features/use-first-commit-message-for-new-prs.tsx
@@ -7,7 +7,7 @@ import features from '.';
 import looseParseInt from '../helpers/loose-parse-int';
 
 async function init(): Promise<void | false> {
-	const commitCount = (await elementReady<HTMLElement>('div.Box.mb-3 .octicon-git-commit'))?.nextElementSibling;
+	const commitCount = (await elementReady('div.Box.mb-3 .octicon-git-commit'))?.nextElementSibling;
 	if (!commitCount || looseParseInt(commitCount) < 2 || !select.exists('#new_pull_request')) {
 		return false;
 	}
-- 
cgit v1.2.3

