mirror of https://github.com/nodejs/node.git
repl: remove redundant check of rli.rine.length
It get's set to '' 1 line above, so we know that that's always 0.pull/24503/head
parent
b7ddd30181
commit
6b5a34cdf3
|
@ -149,8 +149,7 @@ function REPLServer(prompt, stream, eval, useGlobal, ignoreUndefined) {
|
|||
|
||||
rli.line = '';
|
||||
|
||||
if (!(self.bufferedCommand && self.bufferedCommand.length > 0) &&
|
||||
rli.line.length === 0) {
|
||||
if (!(self.bufferedCommand && self.bufferedCommand.length > 0)) {
|
||||
rli.output.write('(^C again to quit)\n');
|
||||
sawSIGINT = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue