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: https://github.com/nodejs/node/pull/39078
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
Rich Trott 2021-06-18 18:52:37 -07:00
parent f4d0a6a07b
commit 3c099874aa
1 changed files with 2 additions and 5 deletions

View File

@ -1,6 +1,3 @@
// TODO(trott): enable ESLint
/* eslint-disable getter-return */
'use strict';
const {
@ -899,7 +896,7 @@ function createRepl(inspector) {
copyOwnProperties(context, {
get help() {
print(HELP);
return print(HELP);
},
get run() {
@ -1078,7 +1075,7 @@ function createRepl(inspector) {
repl.setPrompt('> ');
print('Press Ctrl+C to leave debug repl');
repl.displayPrompt();
return repl.displayPrompt();
},
get version() {