Skip to content

Commit 685724b

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

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
@@ -315,8 +315,8 @@ function getErrMessage(message, fn) {
315315
errorCache.set(identifier, message);
316316

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

0 commit comments

Comments
 (0)