From 18060f2d1229c8c28b8b048345bf2b88e469bb5e Mon Sep 17 00:00:00 2001 From: Khalid Adil Date: Fri, 12 Oct 2018 09:20:38 -0700 Subject: [PATCH] repl: remove unused variable e from try catch PR-URL: https://github.com/nodejs/node/pull/23449 Reviewed-By: Gireesh Punathil Reviewed-By: Beth Griggs Reviewed-By: Colin Ihrig Reviewed-By: Sakthipriyan Vairamani --- lib/repl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/repl.js b/lib/repl.js index 46f81a02f0c5d5..4ec7229e05b464 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -1482,7 +1482,7 @@ function defineDefaultCommands(repl) { this.outputStream.write('Failed to load: ' + file + ' is not a valid file\n'); } - } catch (e) { + } catch { this.outputStream.write('Failed to load: ' + file + '\n'); } this.displayPrompt();