Skip to content

Commit 6855b61

Browse files
mmisiarekjasnell
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 <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>
1 parent aa63e55 commit 6855b61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/repl/await.js

+1-1
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)