Skip to content

Commit

Permalink
nit: unnecessary if check
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Aug 26, 2023
1 parent 97366fc commit db326c1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/shared/cli/startLineWithDots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit db326c1

Please sign in to comment.