Skip to content

Commit db326c1

Browse files
nit: unnecessary if check
1 parent 97366fc commit db326c1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/shared/cli/startLineWithDots.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ export function startLineWithDots(line: string) {
55
let lastLogged!: string;
66

77
function clearLine() {
8-
if (lastLogged) {
9-
readline.clearLine(process.stdout, -1);
10-
readline.moveCursor(process.stdout, -lastLogged.length, 0);
11-
}
8+
readline.clearLine(process.stdout, -1);
9+
readline.moveCursor(process.stdout, -lastLogged.length, 0);
1210
}
1311

1412
function writeLine() {

0 commit comments

Comments
 (0)