Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9dfc13e

Browse filesBrowse 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 <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 e5a2fa2 commit 9dfc13e
Copy full SHA for 9dfc13e

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎lib/internal/repl/await.js‎

Copy file name to clipboardExpand all lines: lib/internal/repl/await.js
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.