Skip to content

Commit

Permalink
repl: remove variable redeclaration
Browse files Browse the repository at this point in the history
`match` and `filter` are declared twice with `var` in `repl.js`.
Declare the variables only once.

PR-URL: nodejs#4977
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
Trott authored and Michael Scovetta committed Apr 2, 2016
1 parent 30d2adb commit 5bcb3be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5bcb3be

Please sign in to comment.