Skip to content

Commit

Permalink
repl: remove redundant initialization
Browse files Browse the repository at this point in the history
PR-URL: nodejs#26562
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
gengjiawen authored and danbev committed Mar 15, 2019
1 parent 2788fd6 commit ccdaa43
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 @@ -1030,8 +1030,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 ccdaa43

Please sign in to comment.