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 <mscdex@mscdex.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
Trott authored and rvagg committed Feb 8, 2016
1 parent 612ce66 commit 2844cc0
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 2844cc0

Please sign in to comment.