File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
lib/node_modules/@stdlib/fs/read-dir/lib Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2020
2121// MODULES //
2222
23- var fs = require ( 'fs' ) ;
23+ var readdir = require ( 'fs' ) . readdir ;
2424
2525
2626// MAIN //
@@ -48,7 +48,7 @@ function readDir() {
4848 for ( i = 0 ; i < args . length ; i ++ ) {
4949 args [ i ] = arguments [ i ] ;
5050 }
51- fs . readdir . apply ( null , args ) ;
51+ readdir . apply ( null , args ) ;
5252}
5353
5454
Original file line number Diff line number Diff line change 2020
2121// MODULES //
2222
23- var fs = require ( 'fs' ) ;
23+ var readdirSync = require ( 'fs' ) . readdirSync ; // eslint-disable-line no-sync
2424
2525
2626// MAIN //
@@ -40,7 +40,7 @@ var fs = require( 'fs' );
4040*/
4141function readDirSync ( path ) {
4242 try {
43- return fs . readdirSync ( path ) ; // eslint-disable-line no-sync
43+ return readdirSync ( path ) ;
4444 } catch ( err ) {
4545 return err ;
4646 }
You can’t perform that action at this time.
0 commit comments