Skip to content

Commit 38289cf

Browse files
chore: fix JavaScript lint errors
PR-URL: #11187 Closes: #11183 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 7a2753c commit 38289cf

File tree

1 file changed

+6
-6
lines changed
  • lib/node_modules/@stdlib/utils/async/try-then/lib

1 file changed

+6
-6
lines changed

lib/node_modules/@stdlib/utils/async/try-then/lib/main.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ function trythenAsync( x, y, done ) {
9696
return y( error, clbk2 );
9797
}
9898
nargs = arguments.length;
99-
args = new Array( nargs );
100-
args[ 0 ] = null;
99+
args = [];
100+
args.push( null );
101101
for ( i = 1; i < nargs; i++ ) {
102-
args[ i ] = arguments[ i ];
102+
args.push( arguments[ i ] );
103103
}
104104
return done.apply( null, args );
105105
}
@@ -120,10 +120,10 @@ function trythenAsync( x, y, done ) {
120120
return done( error );
121121
}
122122
nargs = arguments.length;
123-
args = new Array( nargs );
124-
args[ 0 ] = null;
123+
args = [];
124+
args.push( null );
125125
for ( i = 1; i < nargs; i++ ) {
126-
args[ i ] = arguments[ i ];
126+
args.push( arguments[ i ] );
127127
}
128128
return done.apply( null, args );
129129
}

0 commit comments

Comments
 (0)