From a824bb9891ab3b03e425436568c67c8c41d3cb41 Mon Sep 17 00:00:00 2001 From: mmisiarek Date: Fri, 12 Oct 2018 09:23:33 -0700 Subject: [PATCH] repl: remove unused variable from try catch Catch statement defines err variable that is never used, so it is safe to remove that. --- lib/internal/repl/await.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/repl/await.js b/lib/internal/repl/await.js index 5a26e835574603..e0b79805df049b 100644 --- a/lib/internal/repl/await.js +++ b/lib/internal/repl/await.js @@ -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;