From 8bf8cd2f2fe462ca4e632e00e3782b72187408db Mon Sep 17 00:00:00 2001
From: Florent <cheap.glitch@gmail.com>
Date: Fri, 8 Jul 2022 11:51:32 +0200
Subject: Lint (#5727)

Co-authored-by: Federico Brigante <me@fregante.com>
Co-authored-by: Kid <hi@xuann.wang>
---
 source/features/easy-toggle-commit-messages.tsx | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

(limited to 'source/features/easy-toggle-commit-messages.tsx')

diff --git a/source/features/easy-toggle-commit-messages.tsx b/source/features/easy-toggle-commit-messages.tsx
index 7cdefc47..33b9040f 100644
--- a/source/features/easy-toggle-commit-messages.tsx
+++ b/source/features/easy-toggle-commit-messages.tsx
@@ -14,11 +14,13 @@ function toggleCommitMessage(event: delegate.Event<MouseEvent>): void {
 	}
 }
 
+const commitMessagesSelector = [
+	'.js-commits-list-item',
+	':is(.file-navigation, .js-permalink-shortcut) ~ .Box .Box-header', // Commit message in file tree header
+].join(',');
+
 function init(): Deinit {
-	return delegate(document, [
-		'.js-commits-list-item',
-		':is(.file-navigation, .js-permalink-shortcut) ~ .Box .Box-header', // Commit message in file tree header
-	].join(','), 'click', toggleCommitMessage);
+	return delegate(document, commitMessagesSelector, 'click', toggleCommitMessage);
 }
 
 void features.add(import.meta.url, {
-- 
cgit v1.2.3

