Skip to content

Commit 48d9680

Browse files
Trotttargos
authored andcommitted
debugger: remove final lint exceptions in inspect_repl.js
Adding a return when it's not really a getter is kind of misleading, but so is using a getter for something that doesn't return anything, so ¯\_(ツ)_/¯. PR-URL: #39078 Reviewed-By: Antoine du Hamel <[email protected]>
1 parent 81cebec commit 48d9680

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

‎lib/internal/debugger/inspect_repl.js‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// TODO(trott): enable ESLint
2-
/* eslint-disable getter-return */
3-
41
'use strict';
52

63
const{
@@ -899,7 +896,7 @@ function createRepl(inspector){
899896

900897
copyOwnProperties(context,{
901898
gethelp(){
902-
print(HELP);
899+
returnprint(HELP);
903900
},
904901

905902
getrun(){
@@ -1078,7 +1075,7 @@ function createRepl(inspector){
10781075
repl.setPrompt('> ');
10791076

10801077
print('Press Ctrl+C to leave debug repl');
1081-
repl.displayPrompt();
1078+
returnrepl.displayPrompt();
10821079
},
10831080

10841081
getversion(){

0 commit comments

Comments
(0)