File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -354,15 +354,15 @@ class Ora {
354
354
return this ;
355
355
}
356
356
357
- const prefixText = options . prefixText ?? this . #prefixText;
357
+ const prefixText = options . prefixText || this . #prefixText;
358
358
const fullPrefixText = this . getFullPrefixText ( prefixText , ' ' ) ;
359
359
360
- const symbolText = options . symbol ?? ' ' ;
360
+ const symbolText = options . symbol || ' ' ;
361
361
362
- const text = options . text ?? this . text ;
362
+ const text = options . text || this . text ;
363
363
const fullText = ( typeof text === 'string' ) ? ' ' + text : '' ;
364
364
365
- const suffixText = options . suffixText ?? this . #suffixText;
365
+ const suffixText = options . suffixText !== undefined ? options . suffixText : this . #suffixText;
366
366
const fullSuffixText = this . getFullSuffixText ( suffixText , ' ' ) ;
367
367
368
368
const textToWrite = fullPrefixText + symbolText + fullText + fullSuffixText + '\n' ;
You can’t perform that action at this time.
0 commit comments