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 MylesBorins committed Dec 3, 2018
1 parent a5462ba commit dedf0e5
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 @@ -314,8 +314,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 dedf0e5

Please sign in to comment.