From 1f0b337176f6d929cefb8d1426f2372093a8812d Mon Sep 17 00:00:00 2001
From: Kid <44045911+kidonng@users.noreply.github.com>
Date: Sun, 13 Feb 2022 17:59:07 +0800
Subject: Lint (#5304)

Co-authored-by: yakov116 <16872793+yakov116@users.noreply.github.com>
Co-authored-by: Federico Brigante <me@fregante.com>
---
 source/features/fork-source-link-same-view.tsx | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

(limited to 'source/features/fork-source-link-same-view.tsx')

diff --git a/source/features/fork-source-link-same-view.tsx b/source/features/fork-source-link-same-view.tsx
index bf0b1605..4a858da5 100644
--- a/source/features/fork-source-link-same-view.tsx
+++ b/source/features/fork-source-link-same-view.tsx
@@ -20,9 +20,7 @@ async function init(): Promise<void> {
 
 	if (isFilePath()) {
 		sameViewUrl.branch = await getDefaultBranch(forkedRepository);
-	}
-
-	if (pageDetect.isIssue() || pageDetect.isPR()) {
+	} else if (pageDetect.isIssue() || pageDetect.isPR()) {
 		sameViewUrl.assign({
 			route: '',
 			branch: '',
-- 
cgit v1.2.3

