Skip to content

Commit

Permalink
repl: remove unused variable from try catch
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
mmisiarek authored and rvagg committed Nov 28, 2018
1 parent 74060e8 commit 9d6528d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/repl/await.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9d6528d

Please sign in to comment.