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.