Skip to content

Commit 144aeea

Browse files
himself65BridgeAR
authored andcommitted
lib: remove the use of util.isFunction
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]>
1 parent 55631f4 commit 144aeea

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/inspector.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ if (!hasInspector)
2020

2121
const EventEmitter = require('events');
2222
const { validateString } = require('internal/validators');
23-
const util = require('util');
2423
const { isMainThread } = require('worker_threads');
2524

2625
const {
@@ -86,7 +85,7 @@ class Session extends EventEmitter {
8685

8786
post(method, params, callback) {
8887
validateString(method, 'method');
89-
if (!callback && util.isFunction(params)) {
88+
if (!callback && typeof params === 'function') {
9089
callback = params;
9190
params = null;
9291
}

0 commit comments

Comments
 (0)