From e2b96da6babb1550ab902c997c3d8e43cd0df92a Mon Sep 17 00:00:00 2001 From: cjihrig Date: Sun, 4 Nov 2018 10:00:36 -0500 Subject: [PATCH] events: remove unused catch bindings PR-URL: https://github.com/nodejs/node/pull/24079 Reviewed-By: Sam Roberts Reviewed-By: Wyatt Preul --- lib/events.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/events.js b/lib/events.js index ff1648d6aa13e7..e59ff3f04dd93b 100644 --- a/lib/events.js +++ b/lib/events.js @@ -160,7 +160,7 @@ EventEmitter.prototype.emit = function emit(type, ...args) { value: enhanceStackTrace.bind(null, er, capture), configurable: true }); - } catch (e) {} + } catch {} // Note: The comments on the `throw` lines are intentional, they show // up in Node's output if this results in an unhandled exception.