Skip to content

Commit

Permalink
lib: refactor deprecated function in readline.js
Browse files Browse the repository at this point in the history
PR-URL: #26494
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
gengjiawen authored and BridgeAR committed Mar 14, 2019
1 parent b9cfaa3 commit 6b004e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/readline.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const {
ERR_INVALID_CURSOR_POS,
ERR_INVALID_OPT_VALUE
} = require('internal/errors').codes;
const { debug, inherits } = require('util');
const { inspect, inherits } = require('util');
const { validateString } = require('internal/validators');
const { emitExperimentalWarning } = require('internal/util');
const { Buffer } = require('buffer');
Expand Down Expand Up @@ -483,7 +483,7 @@ Interface.prototype._tabComplete = function(lastKeypressWasTab) {
self.resume();

if (err) {
debug('tab completion error %j', err);
self._writeToOutput(`tab completion error ${inspect(err)}`);
return;
}

Expand Down

0 comments on commit 6b004e0

Please sign in to comment.