diff options
author | cjihrig <cjihrig@gmail.com> | 2018-11-04 09:59:52 -0500 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2018-11-06 10:58:42 -0500 |
commit | 39a027224e81681251266cdd104229ae53a0c12a (patch) | |
tree | 5809d52619f3286ea197bfc32a5f162901d0698f /lib | |
parent | 9d68e568569aa9b8ddf387b3d58adb6ae7e3cc22 (diff) | |
download | android-node-v8-39a027224e81681251266cdd104229ae53a0c12a.tar.gz android-node-v8-39a027224e81681251266cdd104229ae53a0c12a.tar.bz2 android-node-v8-39a027224e81681251266cdd104229ae53a0c12a.zip |
assert: remove unused catch bindings
PR-URL: https://github.com/nodejs/node/pull/24079
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Wyatt Preul <wpreul@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/assert.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/assert.js b/lib/assert.js index 9990d0e888..6963ef4130 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. |