diff options
author | 2022-02-13 17:59:07 +0800 | |
---|---|---|
committer | 2022-02-13 17:59:07 +0800 | |
commit | 1f0b337176f6d929cefb8d1426f2372093a8812d (patch) | |
tree | ca05eab03f1e392790e7846855f898fbee30e1d0 /source/features/fork-source-link-same-view.tsx | |
parent | 31027f0c451ca4131a81b9fdce7dff09a3d45461 (diff) | |
download | refined-github-1f0b337176f6d929cefb8d1426f2372093a8812d.tar.gz refined-github-1f0b337176f6d929cefb8d1426f2372093a8812d.tar.zst refined-github-1f0b337176f6d929cefb8d1426f2372093a8812d.zip |
Lint (#5304)
Co-authored-by: yakov116 <16872793+yakov116@users.noreply.github.com>
Co-authored-by: Federico Brigante <me@fregante.com>
Diffstat (limited to 'source/features/fork-source-link-same-view.tsx')
-rw-r--r-- | source/features/fork-source-link-same-view.tsx | 4 |
1 files changed, 1 insertions, 3 deletions
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: '', |