Skip to content

Commit

Permalink
Do not start spinner if there is no message
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasBomholtz committed Jun 6, 2023
1 parent 610a59e commit bee1d8f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/util/spinner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ class Spinner {
frames: string[] = ['|', '/', '-', '\\'];

setMessage(message: string, verbose = true): void {
if (!message) {
return;
}
if (verbose) {
tui.showVerbose('STATUS', message);
}
Expand Down

0 comments on commit bee1d8f

Please sign in to comment.