Browse Source

repl: remove redundant check of rli.rine.length

It get's set to '' 1 line above, so we know that that's always 0.
v0.9.1-release
Nathan Rajlich 13 years ago
committed by Bert Belder
parent
commit
6b5a34cdf3
  1. 3
      lib/repl.js

3
lib/repl.js

@ -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…
Cancel
Save