From dedf0e5cde2f14366b725a156458ce7ccce8dfcc Mon Sep 17 00:00:00 2001 From: cjihrig Date: Sun, 4 Nov 2018 09:59:52 -0500 Subject: [PATCH] assert: remove unused catch bindings PR-URL: https://github.com/nodejs/node/pull/24079 Reviewed-By: Sam Roberts Reviewed-By: Wyatt Preul --- lib/assert.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/assert.js b/lib/assert.js index 4dbe3b2eca3..7dffb6c533b 100644 --- a/lib/assert.js +++ b/lib/assert.js @@ -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.