Skip to content

Commit 9dfc13e

Browse files
mmisiarekMylesBorins
authored andcommitted
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: #23452 Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]>
1 parent e5a2fa2 commit 9dfc13e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/repl/await.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function processTopLevelAwait(src) {
6969
let root;
7070
try {
7171
root = acorn.parse(wrapped, { ecmaVersion: 10 });
72-
} catch (err) {
72+
} catch {
7373
return null;
7474
}
7575
const body = root.body[0].expression.callee.body;

0 commit comments

Comments
 (0)