Browse Source

repl: remove variable redeclaration

`match` and `filter` are declared twice with `var` in `repl.js`.
Declare the variables only once.

PR-URL: https://github.com/nodejs/node/pull/4977
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
process-exit-stdio-flushing
Rich Trott 9 years ago
committed by James M Snell
parent
commit
ba81d152ec
  1. 2
      lib/repl.js

2
lib/repl.js

@ -655,7 +655,7 @@ REPLServer.prototype.complete = function(line, callback) {
// list of completion lists, one for each inheritance "level"
var completionGroups = [];
var completeOn, match, filter, i, group, c;
var completeOn, i, group, c;
// REPL commands (e.g. ".break").
var match = null;

Loading…
Cancel
Save