From 92d307516909866ed31160d3ac326c51e0d35107 Mon Sep 17 00:00:00 2001 From: Matt Van Horn Date: Mon, 27 Apr 2026 03:04:16 -0700 Subject: [PATCH] chore: fix JavaScript lint errors Move onDrain out of onCommand in end.js so it sits at the same scope as onCommand, matching the convention already used by next.js, prev.js, last.js, jump.js, and friends. Resolves the stdlib/no-unnecessary-nested-functions lint error reported by the automated workflow. Closes: #11803 --- .../repl/presentation/lib/commands/end.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/node_modules/@stdlib/repl/presentation/lib/commands/end.js b/lib/node_modules/@stdlib/repl/presentation/lib/commands/end.js index 3ee24df5acc3..1321dbc69955 100644 --- a/lib/node_modules/@stdlib/repl/presentation/lib/commands/end.js +++ b/lib/node_modules/@stdlib/repl/presentation/lib/commands/end.js @@ -37,15 +37,15 @@ function command( pres ) { */ function onCommand() { pres._repl.once( 'drain', onDrain ); // eslint-disable-line no-underscore-dangle + } - /** - * Callback invoked upon a `drain` event. - * - * @private - */ - function onDrain() { - pres.end().show(); - } + /** + * Callback invoked upon a `drain` event. + * + * @private + */ + function onDrain() { + pres.end().show(); } }