Skip to content

Commit b187669

Browse files
RafaelGSSaduh95
andauthored
Update tools/actions/lint-release-proposal-commit-list.mjs
Co-authored-by: Antoine du Hamel <[email protected]>
1 parent e10428e commit b187669

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/actions/lint-release-proposal-commit-list.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ commitList = commitList
4444
.replaceAll('**(SEMVER-MAJOR)** ', '')
4545
.replaceAll('\\', '');
4646

47-
let expectedNumberOfCommitsLeft = (commitList.match(/\n\* \[/g) || []).length;
47+
let expectedNumberOfCommitsLeft = commitList.match(/\n\* \[/g)?.length ?? 0;
4848

4949
for await (const line of stdinLineByLine) {
5050
const { smallSha, title, prURL } = JSON.parse(line);

0 commit comments

Comments
 (0)