Skip to content

Commit 18542c4

Browse files
TrottMyles Borins
authored and
Myles Borins
committed
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 <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent d1d220a commit 18542c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/repl.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ REPLServer.prototype.complete = function(line, callback) {
641641
// list of completion lists, one for each inheritance "level"
642642
var completionGroups = [];
643643

644-
var completeOn, match, filter, i, group, c;
644+
var completeOn, i, group, c;
645645

646646
// REPL commands (e.g. ".break").
647647
var match = null;

0 commit comments

Comments
 (0)