Skip to content

Commit 03936ce

Browse files
committed
chore: stopping spinner with no text skips persist
If no text is provided to `cli.stopSpinner` then it should allow for non-persistent usage of the spinner.
1 parent cc6f1d4 commit 03936ce

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/cli.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ export default class CLI {
107107
}
108108

109109
stopSpinner(rawText, status = SUCCESS) {
110+
if (!rawText) {
111+
this.spinner.stop();
112+
return;
113+
}
114+
110115
let symbol;
111116
switch (status) {
112117
case SUCCESS:

0 commit comments

Comments
 (0)