diff --git a/src/Player.ts b/src/Player.ts index 7c7b0e1..d9e13fb 100644 --- a/src/Player.ts +++ b/src/Player.ts @@ -882,7 +882,7 @@ export class Player extends EventEmitter { const index = Math.round((currentStreamTime / totalTime) * length); const indicator = typeof options?.indicator === 'string' && options?.indicator.length > 0 ? options?.indicator : '🔘'; - const line = typeof options?.line === 'string' ? options?.line.length > 0 ? options?.line : '▬' : '▬'; + const line = typeof options?.line === 'string' && options?.line.length > 0 ? options?.line : '▬'; if (index >= 1 && index <= length) { const bar = line.repeat(length - 1).split('');