Skip to content

Commit

Permalink
repl: remove obsolete buffer clearing
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
BridgeAR authored and addaleax committed Feb 6, 2019
1 parent 5aaeb01 commit 2c737a8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,6 @@ function REPLServer(prompt,
self.outputStream.write('npm should be run outside of the ' +
'node repl, in your normal shell.\n' +
'(Press Control-D to exit.)\n');
self.clearBufferedCommand();
self.displayPrompt();
return;
}
Expand Down

0 comments on commit 2c737a8

Please sign in to comment.