Skip to content

Commit b2baa3d

Browse files
eladkishonbenjamingr
authored andcommitted
repl: fix declaring a variable with the name util
PR-URL: #38141 Fixes: #38139 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
1 parent b87f1be commit b2baa3d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/internal/repl/utils.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ function setupPreview(repl, contextSymbol, bufferSymbol, active) {
394394
}
395395

396396
const inputPreviewCallback = (error, inspected) => {
397-
if (inspected === null) {
397+
if (inspected == null) {
398398
return;
399399
}
400400

@@ -413,9 +413,9 @@ function setupPreview(repl, contextSymbol, bufferSymbol, active) {
413413
// Do not preview `undefined` if colors are deactivated or explicitly
414414
// requested.
415415
if (inspected === 'undefined' &&
416-
(!repl.useColors || repl.ignoreUndefined)) {
417-
return;
418-
}
416+
(!repl.useColors || repl.ignoreUndefined)) {
417+
return;
418+
}
419419

420420
inputPreview = inspected;
421421

0 commit comments

Comments
 (0)