From 685724b53d462270868f4edcaea71d4db113b930 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 9990d0e888e1c5..6963ef41307397 100644 --- a/lib/assert.js +++ b/lib/assert.js @@ -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.