Skip to content

Commit

Permalink
repl: remove redundant initialization
Browse files Browse the repository at this point in the history
PR-URL: #26562
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
gengjiawen authored and targos committed Mar 27, 2019
1 parent c96946d commit e8412bc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -1021,8 +1021,7 @@ function complete(line, callback) {

// REPL commands (e.g. ".break").
var filter;
var match = null;
match = line.match(/^\s*\.(\w*)$/);
let match = line.match(/^\s*\.(\w*)$/);
if (match) {
completionGroups.push(Object.keys(this.commands));
completeOn = match[1];
Expand Down

0 comments on commit e8412bc

Please sign in to comment.