From cb8824ca5a80f7d0c4009339b76e46041095842a Mon Sep 17 00:00:00 2001 From: Payal Date: Sat, 20 Sep 2025 19:45:57 +0530 Subject: [PATCH] move onDrain function to outer scope in first.js --- .../repl/presentation/lib/commands/first.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/node_modules/@stdlib/repl/presentation/lib/commands/first.js b/lib/node_modules/@stdlib/repl/presentation/lib/commands/first.js index 7776fec37cae..e2431f157ca8 100644 --- a/lib/node_modules/@stdlib/repl/presentation/lib/commands/first.js +++ b/lib/node_modules/@stdlib/repl/presentation/lib/commands/first.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.first().show(); - } + /** + * Callback invoked upon a `drain` event. + * + * @private + */ + function onDrain() { + pres.first().show(); } }