Skip to content

Commit

Permalink
lib: remove the use of util.isFunction
Browse files Browse the repository at this point in the history
PR-URL: #29566
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Yongsheng Zhang <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
himself65 authored and BridgeAR committed Sep 25, 2019
1 parent 55631f4 commit 144aeea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ if (!hasInspector)

const EventEmitter = require('events');
const { validateString } = require('internal/validators');
const util = require('util');
const { isMainThread } = require('worker_threads');

const {
Expand Down Expand Up @@ -86,7 +85,7 @@ class Session extends EventEmitter {

post(method, params, callback) {
validateString(method, 'method');
if (!callback && util.isFunction(params)) {
if (!callback && typeof params === 'function') {
callback = params;
params = null;
}
Expand Down

0 comments on commit 144aeea

Please sign in to comment.