From b472b63019689e2c83b9644ae4728a16c99882d4 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 4dbe3b2eca3d01..7dffb6c533bf39 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.