Skip to content

Commit cb8824c

Browse files
committed
move onDrain function to outer scope in first.js
1 parent 5fb74a0 commit cb8824c

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)