From 4248fcf8a430093077c5109e6e5f675c6a068045 Mon Sep 17 00:00:00 2001
From: yakov116 <16872793+yakov116@users.noreply.github.com>
Date: Wed, 19 Aug 2020 21:52:22 -0400
Subject: Lint (#3478)

---
 source/features/remove-label-faster.tsx | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

(limited to 'source/features/remove-label-faster.tsx')

diff --git a/source/features/remove-label-faster.tsx b/source/features/remove-label-faster.tsx
index d993ecfb..0a547838 100644
--- a/source/features/remove-label-faster.tsx
+++ b/source/features/remove-label-faster.tsx
@@ -4,12 +4,11 @@ import XIcon from 'octicon/x.svg';
 import select from 'select-dom';
 import oneTime from 'onetime';
 import delegate from 'delegate-it';
-import {observe, Observer} from 'selector-observer';
 import * as pageDetect from 'github-url-detection';
+import {observe, Observer} from 'selector-observer';
 
 import features from '.';
 import * as api from '../github-helpers/api';
-
 import {getRepoURL, getConversationNumber} from '../github-helpers';
 
 let observer: Observer;
@@ -68,10 +67,6 @@ async function init(): Promise<void> {
 	delegate(document, '.rgh-remove-label-faster:not([disabled])', 'click', removeLabelButtonClickHandler);
 }
 
-function deinit() {
-	observer.abort();
-}
-
 void features.add({
 	id: __filebasename,
 	description: 'Adds one-click buttons to remove labels in conversations.',
@@ -85,5 +80,5 @@ void features.add({
 		canNotEditLabels
 	],
 	init,
-	deinit
+	deinit: () => observer.abort()
 });
-- 
cgit v1.2.3

