Skip to content

Commit 291b901

Browse files
refactor: move onDrain function to outer scope
PR-URL: #8111 Closes: #8100 Reviewed-by: Philipp Burckhardt <[email protected]>
1 parent 4f34af5 commit 291b901

File tree

1 file changed

+8
-8
lines changed
  • lib/node_modules/@stdlib/repl/presentation/lib/commands

1 file changed

+8
-8
lines changed

lib/node_modules/@stdlib/repl/presentation/lib/commands/first.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ function command( pres ) {
3737
*/
3838
function onCommand() {
3939
pres._repl.once( 'drain', onDrain ); // eslint-disable-line no-underscore-dangle
40+
}
4041

41-
/**
42-
* Callback invoked upon a `drain` event.
43-
*
44-
* @private
45-
*/
46-
function onDrain() {
47-
pres.first().show();
48-
}
42+
/**
43+
* Callback invoked upon a `drain` event.
44+
*
45+
* @private
46+
*/
47+
function onDrain() {
48+
pres.first().show();
4949
}
5050
}
5151

0 commit comments

Comments
 (0)