Skip to content

Commit ccdaa43

Browse files
gengjiawendanbev
authored andcommitted
repl: remove redundant initialization
PR-URL: #26562 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 2788fd6 commit ccdaa43

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/repl.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,8 +1030,7 @@ function complete(line, callback) {
10301030

10311031
// REPL commands (e.g. ".break").
10321032
var filter;
1033-
var match = null;
1034-
match = line.match(/^\s*\.(\w*)$/);
1033+
let match = line.match(/^\s*\.(\w*)$/);
10351034
if (match) {
10361035
completionGroups.push(Object.keys(this.commands));
10371036
completeOn = match[1];

0 commit comments

Comments
 (0)