summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2019-01-27 01:20:08 +0100
committerDaniel Bevenius <daniel.bevenius@gmail.com>2019-02-06 07:37:48 +0100
commit8c12a78d20e0108395657b2f6dce5922019d76b4 (patch)
tree4276a8efe672dc5d742ef825bb539de2460fb2bd /lib
parentf9fe037088d66b2ad4bab5bd299be1e78065d776 (diff)
downloadandroid-node-v8-8c12a78d20e0108395657b2f6dce5922019d76b4.tar.gz
android-node-v8-8c12a78d20e0108395657b2f6dce5922019d76b4.tar.bz2
android-node-v8-8c12a78d20e0108395657b2f6dce5922019d76b4.zip
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: https://github.com/nodejs/node/pull/25731 Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/repl.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/repl.js b/lib/repl.js
index e0f5373c8c..2568016948 100644
--- a/lib/repl.js
+++ b/lib/repl.js
@@ -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;
}