diff options
author | 2021-07-08 19:31:59 +0700 | |
---|---|---|
committer | 2021-07-08 19:31:59 +0700 | |
commit | f908677216e84f4a238a69f0573a257945ea6a25 (patch) | |
tree | 62e5c6a111db006fb1afccc0889169cd1dce6d2b /source/github-helpers/github-url.ts | |
parent | 0830ef295133f99d66727c85af4bef1f252c1461 (diff) | |
download | refined-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.ts | 8 |
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}; |