Skip to content

Commit

Permalink
repl: remove usage of require('util') in repl/history
Browse files Browse the repository at this point in the history
Use `require('internal/util/debuglog').debuglog` instead of
`require('util').debuglog`.

Refs: #26546

PR-URL: #26819
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
dnlup authored and ZYSzys committed Mar 22, 2019
1 parent 01a1296 commit 91be64b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/internal/repl/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ const { Interface } = require('readline');
const path = require('path');
const fs = require('fs');
const os = require('os');
const util = require('util');
const debug = util.debuglog('repl');
const debug = require('internal/util/debuglog').debuglog('repl');

// XXX(chrisdickinson): The 15ms debounce value is somewhat arbitrary.
// The debounce is to guard against code pasted into the REPL.
Expand Down

0 comments on commit 91be64b

Please sign in to comment.