Skip to content

Commit

Permalink
gen-changelog: fix crash due to 'git rev-list' returning empty string (
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov authored May 24, 2022
1 parent c7d7026 commit 21ea3ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions resources/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ export function execOutput(command: string, options?: { cwd: string }): string {
encoding: 'utf-8',
...options,
});
assert(output, `Missing output from "${command}"`);
return output?.trimEnd();
return output.trimEnd();
}

export function readdirRecursive(
Expand Down

0 comments on commit 21ea3ae

Please sign in to comment.