summaryrefslogtreecommitdiff
path: root/source/github-helpers/github-url.ts
diff options
context:
space:
mode:
authorGravatar Federico Brigante <me@fregante.com> 2021-07-08 19:31:59 +0700
committerGravatar GitHub <noreply@github.com> 2021-07-08 19:31:59 +0700
commitf908677216e84f4a238a69f0573a257945ea6a25 (patch)
tree62e5c6a111db006fb1afccc0889169cd1dce6d2b /source/github-helpers/github-url.ts
parent0830ef295133f99d66727c85af4bef1f252c1461 (diff)
downloadrefined-github-f908677216e84f4a238a69f0573a257945ea6a25.tar.gz
refined-github-f908677216e84f4a238a69f0573a257945ea6a25.tar.zst
refined-github-f908677216e84f4a238a69f0573a257945ea6a25.zip
Lint (#4544)
Diffstat (limited to 'source/github-helpers/github-url.ts')
-rw-r--r--source/github-helpers/github-url.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/github-helpers/github-url.ts b/source/github-helpers/github-url.ts
index 066e27e4..e8acd411 100644
--- a/source/github-helpers/github-url.ts
+++ b/source/github-helpers/github-url.ts
@@ -49,10 +49,10 @@ export default class GitHubURL {
const currentBranch = getCurrentCommittish();
const currentBranchSections = currentBranch?.split('/');
if (
- !currentBranch || // Current branch could not be determined (1/2)
- !currentBranchSections || // Current branch could not be determined (2/2)
- ambiguousReference.length === 1 || // Ref has no slashes
- currentBranchSections.length === 1 // Current branch has no slashes
+ !currentBranch // Current branch could not be determined (1/2)
+ || !currentBranchSections // Current branch could not be determined (2/2)
+ || ambiguousReference.length === 1 // Ref has no slashes
+ || currentBranchSections.length === 1 // Current branch has no slashes
) {
// Then the reference is not ambiguous
return {branch, filePath};