Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
repl: remove obsolete buffer clearing
It is checked if an command buffer exists or not. This code branch
can only be reached if non exist, so there's no need to clear that
buffer again.
  • Loading branch information
BridgeAR committed Jan 27, 2019
commit 240388c2028e0b77065858171e06cf9b9ad5b61d
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