Skip to content

Commit

Permalink
consistent commenting
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmastech committed Jan 5, 2025
1 parent 26f57c2 commit 355515c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/prompt_secret.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ export function promptSecret(

// If the user has deleted a character
if (currentLength < previousLength) {
// Then clear the current line
// Then clear the current line.
output.writeSync(CLR);
if (charsPastLineLength === 0) {
// And if there's no characters on the current line, return to previous line
// And if there's no characters on the current line, return to previous line.
output.writeSync(MOVE_LINE_UP);
}
} else {
Expand Down

0 comments on commit 355515c

Please sign in to comment.