diff options
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}; |