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.