mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
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:
1 parent
ee3c23d568
commit
d07ee1ca0b
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user