Skip to content

Commit 498177d

Browse files
committed
fix: if the result is empty, do not output anything
1 parent bb27cc6 commit 498177d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/cli.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ cli.command('list', 'List changesets')
8282
if (options.versions || options.minorVersions)
8383
results = results.map(r => r.version);
8484

85+
// If the result is empty, do not output anything
86+
if (results.length == 0)
87+
return;
88+
8589
// Output in json format or plain
8690
if (options.prettyJson) {
8791
console.log(JSON.stringify(results, null, ' '));

0 commit comments

Comments
 (0)