Skip to content

Commit

Permalink
repl: remove unused variable e from try catch
Browse files Browse the repository at this point in the history
PR-URL: #23449
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Beth Griggs <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
  • Loading branch information
khalidadil authored and MylesBorins committed Nov 29, 2018
1 parent 0eba1b2 commit 4c0e7b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 4c0e7b4

Please sign in to comment.