Skip to content

Commit

Permalink
fix: null version is acceptable
Browse files Browse the repository at this point in the history
  • Loading branch information
bitgorust committed Jun 13, 2024
1 parent 761b2d3 commit b2e8a6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/assemble-release-plan/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type SnapshotReleaseParameters = {
function getPreVersion(version: string) {
let parsed = semverParse(version)!;
let preVersion =
parsed.prerelease[1] === undefined ? -1 : parsed.prerelease[1];
parsed?.prerelease[1] === undefined ? -1 : parsed.prerelease[1];
if (typeof preVersion !== "number") {
throw new InternalError("preVersion is not a number");
}
Expand Down

0 comments on commit b2e8a6e

Please sign in to comment.