Skip to content

Commit 354c908

Browse files
committed
Fix getBaseGitBranch
1 parent ac83b62 commit 354c908

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/fix/git.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function getPkgNameFromPurlObj(purlObj: PackageURL): string {
2424
export function getBaseGitBranch() {
2525
// Lazily access constants.ENV[GITHUB_REF_NAME].
2626
return (
27-
constants.ENV[GITHUB_REF_NAME] ??
27+
constants.ENV[GITHUB_REF_NAME] ||
2828
// GitHub defaults to branch name "main"
2929
// https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-branches#about-the-default-branch
3030
'main'

0 commit comments

Comments
 (0)