Skip to content

Commit 2c737a8

Browse files
BridgeARaddaleax
authored andcommitted
repl: remove obsolete buffer clearing
It is checked if an command buffer exists or not. This code branch can only be reached if none exist, so there's no need to clear that buffer again. PR-URL: #25731 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
1 parent 5aaeb01 commit 2c737a8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/repl.js

-1
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,6 @@ function REPLServer(prompt,
638638
self.outputStream.write('npm should be run outside of the ' +
639639
'node repl, in your normal shell.\n' +
640640
'(Press Control-D to exit.)\n');
641-
self.clearBufferedCommand();
642641
self.displayPrompt();
643642
return;
644643
}

0 commit comments

Comments
 (0)