Skip to content

Commit

Permalink
fix: support no finalized build
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Sep 1, 2024
1 parent 37d76cc commit d59c831
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/cli/src/commands/finalize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ export function finalizeCommand(program: Command) {
},
});
spinner.succeed(
`Builds finalized: ${result.builds.map((b) => b.url).join(", ")}`,
result.builds.length === 0
? "No builds to finalize"
: `Builds finalized: ${result.builds.map((b) => b.url).join(", ")}`,
);
} catch (error) {
if (error instanceof Error) {
Expand Down

0 comments on commit d59c831

Please sign in to comment.