diff options
author | mmisiarek <michal@misiarek.pl> | 2018-10-12 09:23:33 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-10-13 09:26:30 -0700 |
commit | c301518a456f36382a73ed9e36816061107b2444 (patch) | |
tree | 84071ca49dbd48dc1b64d26b38d2e3a89d239275 /lib/internal/repl | |
parent | dee9d27923ecb4b9cc8aaa0e233d712d802c2d0c (diff) | |
download | android-node-v8-c301518a456f36382a73ed9e36816061107b2444.tar.gz android-node-v8-c301518a456f36382a73ed9e36816061107b2444.tar.bz2 android-node-v8-c301518a456f36382a73ed9e36816061107b2444.zip |
repl: remove unused variable from try catch
Catch statement defines err variable that is never used, so it
is safe to remove that.
PR-URL: https://github.com/nodejs/node/pull/23452
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Diffstat (limited to 'lib/internal/repl')
-rw-r--r-- | lib/internal/repl/await.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internal/repl/await.js b/lib/internal/repl/await.js index 5a26e83557..e0b79805df 100644 --- a/lib/internal/repl/await.js +++ b/lib/internal/repl/await.js @@ -69,7 +69,7 @@ function processTopLevelAwait(src) { let root; try { root = acorn.parse(wrapped, { ecmaVersion: 10 }); - } catch (err) { + } catch { return null; } const body = root.body[0].expression.callee.body; |