diff --git a/lib/repl.js b/lib/repl.js index 7f01a426beeacf..2770478e83ce2a 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -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];