Skip to content

Commit dedf0e5

Browse files
cjihrigMylesBorins
authored andcommitted
assert: remove unused catch bindings
PR-URL: #24079 Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: Wyatt Preul <[email protected]>
1 parent a5462ba commit dedf0e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/assert.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,8 @@ function getErrMessage(message, fn) {
314314
errorCache.set(identifier, message);
315315

316316
return message;
317-
} catch (e) {
318-
// Invalidate cache to prevent trying to read this part again.
317+
} catch {
318+
// Invalidate cache to prevent trying to read this part again.
319319
errorCache.set(identifier, undefined);
320320
} finally {
321321
// Reset limit.

0 commit comments

Comments
 (0)