diff --git a/index.js b/index.js index e68df7b..aa496dd 100644 --- a/index.js +++ b/index.js @@ -199,13 +199,15 @@ function patchAssignSocket (res, callback) { /** * Try to require async_hooks + * + * @returns {Object} * @private */ function tryRequireAsyncHooks () { try { return require('async_hooks') - } catch (e) { + } catch { return {} } }