Skip to content

Commit

Permalink
debugger: apply automatic lint fixes for _inspect.js
Browse files Browse the repository at this point in the history
For issues that ESLint can fix automatically, fix them.

PR-URL: nodejs#38411
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
Trott authored and foxxyz committed Oct 18, 2021
1 parent 5540620 commit 518eb74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/internal/inspector/_inspect.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,10 @@ class NodeInspector {

print(text, appendNewline = false) {
this.clearLine();
this.stdout.write(appendNewline ? `${text}\n` : text);
this.stdout.write(appendNewline ? `${text}\n` : text);
}

#stdioBuffers = {stdout: '', stderr: ''};
#stdioBuffers = { stdout: '', stderr: '' };
childPrint(text, which) {
const lines = (this.#stdioBuffers[which] + text)
.split(/\r\n|\r|\n/g);
Expand All @@ -283,7 +283,7 @@ class NodeInspector {
this.repl.displayPrompt(true);
}
}

if (textToPrint.endsWith('Waiting for the debugger to disconnect...\n')) {
this.killChild();
}
Expand Down

0 comments on commit 518eb74

Please sign in to comment.