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>
This commit is contained in:
mmisiarek authored and Myles Borins committed 2018-11-29 11:38:22 -05:00
1 parent ee3c23d568
commit d07ee1ca0b
1 file changed
+1 -1
+1 -1
View File
@@ -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;