diff --git a/lib/internal/repl/utils.js b/lib/internal/repl/utils.js index ad34e064c29138..f3697aa9b68ae2 100644 --- a/lib/internal/repl/utils.js +++ b/lib/internal/repl/utils.js @@ -379,8 +379,8 @@ function setupPreview(repl, contextSymbol, bufferSymbol, active) { hasCompletions = false; // Add the autocompletion preview. - const insertPreview = false; if (showCompletion) { + const insertPreview = false; showCompletionPreview(repl.line, insertPreview); }