Skip to content

Commit 5ecfc7c

Browse files
cjihrigtargos
authored andcommitted
events: remove unused catch bindings
PR-URL: #24079 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Wyatt Preul <wpreul@gmail.com>
1 parent 685724b commit 5ecfc7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/events.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ EventEmitter.prototype.emit = function emit(type, ...args) {
160160
value: enhanceStackTrace.bind(null, er, capture),
161161
configurable: true
162162
});
163-
} catch (e) {}
163+
} catch {}
164164

165165
// Note: The comments on the `throw` lines are intentional, they show
166166
// up in Node's output if this results in an unhandled exception.

0 commit comments

Comments
 (0)