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 danbev committed Feb 6, 2019
1 parent f9fe037 commit 8c12a78
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 @@ -637,7 +637,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 8c12a78

Please sign in to comment.