diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2019-01-27 01:20:08 +0100 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2019-02-06 07:37:48 +0100 |
commit | 8c12a78d20e0108395657b2f6dce5922019d76b4 (patch) | |
tree | 4276a8efe672dc5d742ef825bb539de2460fb2bd /lib | |
parent | f9fe037088d66b2ad4bab5bd299be1e78065d776 (diff) | |
download | android-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.js | 1 |
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; } |