From 4ed1fba7400b921a9e297d0b77d48423542071f7 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 831d1519f563aa..d71f636cd64dc8 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -1485,7 +1485,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();