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: #4977
Reviewed-By: Brian White <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
Trott authored and Myles Borins committed Feb 18, 2016
1 parent d1d220a commit 18542c4
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 @@ -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;
Expand Down

0 comments on commit 18542c4

Please sign in to comment.