Skip to content

Commit 8c12a78

Browse files
BridgeARdanbev
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 <targos@protonmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
1 parent f9fe037 commit 8c12a78

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/repl.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,6 @@ function REPLServer(prompt,
637637
self.outputStream.write('npm should be run outside of the ' +
638638
'node repl, in your normal shell.\n' +
639639
'(Press Control-D to exit.)\n');
640-
self.clearBufferedCommand();
641640
self.displayPrompt();
642641
return;
643642
}

0 commit comments

Comments
 (0)