Skip to content

Commit 2844cc0

Browse files
Trottrvagg
authored andcommitted
repl: remove variable redeclaration
`match` and `filter` are declared twice with `var` in `repl.js`. Declare the variables only once. PR-URL: #4977 Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 612ce66 commit 2844cc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/repl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ REPLServer.prototype.complete = function(line, callback) {
655655
// list of completion lists, one for each inheritance "level"
656656
var completionGroups = [];
657657

658-
var completeOn, match, filter, i, group, c;
658+
var completeOn, i, group, c;
659659

660660
// REPL commands (e.g. ".break").
661661
var match = null;

0 commit comments

Comments
 (0)