Skip to content

Commit

Permalink
assert: remove unused catch bindings
Browse files Browse the repository at this point in the history
PR-URL: #24079
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Wyatt Preul <wpreul@gmail.com>
  • Loading branch information
cjihrig authored and targos committed Nov 6, 2018
1 parent d59dc0d commit 685724b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,8 @@ function getErrMessage(message, fn) {
errorCache.set(identifier, message);

return message;
} catch (e) {
// Invalidate cache to prevent trying to read this part again.
} catch {
// Invalidate cache to prevent trying to read this part again.
errorCache.set(identifier, undefined);
} finally {
// Reset limit.
Expand Down

0 comments on commit 685724b

Please sign in to comment.