From db326c191794a80efc8d542ac0a4d4d1c56d1348 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Sat, 26 Aug 2023 15:39:16 -0400 Subject: [PATCH] nit: unnecessary if check --- src/shared/cli/startLineWithDots.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/shared/cli/startLineWithDots.ts b/src/shared/cli/startLineWithDots.ts index c2cfd3b37..9992b8745 100644 --- a/src/shared/cli/startLineWithDots.ts +++ b/src/shared/cli/startLineWithDots.ts @@ -5,10 +5,8 @@ export function startLineWithDots(line: string) { let lastLogged!: string; function clearLine() { - if (lastLogged) { - readline.clearLine(process.stdout, -1); - readline.moveCursor(process.stdout, -lastLogged.length, 0); - } + readline.clearLine(process.stdout, -1); + readline.moveCursor(process.stdout, -lastLogged.length, 0); } function writeLine() {