Skip to content

Commit e8412bc

Browse files
gengjiawentargos
authored andcommitted
repl: remove redundant initialization
PR-URL: #26562 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent c96946d commit e8412bc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/repl.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1021,8 +1021,7 @@ function complete(line, callback) {
10211021

10221022
// REPL commands (e.g. ".break").
10231023
var filter;
1024-
var match = null;
1025-
match = line.match(/^\s*\.(\w*)$/);
1024+
let match = line.match(/^\s*\.(\w*)$/);
10261025
if (match) {
10271026
completionGroups.push(Object.keys(this.commands));
10281027
completeOn = match[1];

0 commit comments

Comments
 (0)