Skip to content

Commit

Permalink
Update release.cjs (#5748)
Browse files Browse the repository at this point in the history
remove "no-else-return" lint warning.
  • Loading branch information
epreston authored Oct 13, 2023
1 parent 9913362 commit 2bf47b0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions release.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,12 @@ const run = () => {
} else if (curBranch.startsWith(releaseBranchName)) {
finalizeRelease(curBranch);
return 0;
} else {
console.error(`error: unrecognized branch '${curBranch}.`);
printUsage();
return 1;
}

console.error(`error: unrecognized branch '${curBranch}.`);
printUsage();
return 1;

} else if (process.argv.length === 3) {
// operation specified as arg
const operation = process.argv[2];
Expand Down

0 comments on commit 2bf47b0

Please sign in to comment.