mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
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>
This commit is contained in:
1 parent
d1d220a1cf
commit
18542c41fe
1 file changed
+1
-1
+1
-1
@@ -641,7 +641,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;
|
||||
|
||||
Reference in new issue
Block a user