From 36a695a44dc5416495b6e08bc22503f69b965630 Mon Sep 17 00:00:00 2001
From: Kid <44045911+kidonng@users.noreply.github.com>
Date: Thu, 14 Oct 2021 19:46:19 +0800
Subject: Lint (#4885)

---
 source/features/enable-file-links-in-compare-view.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'source/features/enable-file-links-in-compare-view.tsx')

diff --git a/source/features/enable-file-links-in-compare-view.tsx b/source/features/enable-file-links-in-compare-view.tsx
index 85df3a7a..74f251ac 100644
--- a/source/features/enable-file-links-in-compare-view.tsx
+++ b/source/features/enable-file-links-in-compare-view.tsx
@@ -31,20 +31,20 @@ function handleCompareMenuOpening({delegateTarget: dropdown}: delegate.Event): v
 	);
 
 	const url = new GitHubURL(viewFile.href);
-	viewFile.href = url.assign({branch}).toString();
+	viewFile.href = url.assign({branch}).href;
 
 	// Fix the edit link
 	const editFile = viewFile.cloneNode(true);
 	editFile.textContent = 'Edit file';
 	editFile.removeAttribute('data-ga-click');
-	editFile.href = url.assign({route: 'edit'}).toString();
+	editFile.href = url.assign({route: 'edit'}).href;
 	select('[aria-label$="to make changes."]', dropdown)!.replaceWith(editFile);
 
 	// Fix the delete link
 	const deleteFile = editFile.cloneNode(true);
 	deleteFile.textContent = 'Delete file';
 	deleteFile.classList.add('menu-item-danger');
-	deleteFile.href = url.assign({route: 'delete'}).toString();
+	deleteFile.href = url.assign({route: 'delete'}).href;
 	select('[aria-label$="delete this file."]', dropdown)!.replaceWith(deleteFile);
 }
 
-- 
cgit v1.2.3

