Skip to content

Commit 653a7a0

Browse files
chore: fix JavaScript lint errors
PR-URL: #7096 Closes: #6577 Co-authored-by: Philipp Burckhardt <pburckhardt@outlook.com> Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com> Signed-off-by: Philipp Burckhardt <pburckhardt@outlook.com>
1 parent 26f5797 commit 653a7a0

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/datasets/sotu/scripts

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/datasets/sotu/scripts/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ function datapackage( files ) {
521521

522522
re = /[_.]/g;
523523

524-
arr = new Array( files.length );
524+
arr = [];
525525
for ( i = 0; i < files.length; i++ ) {
526526
ext = extname( files[ i ] );
527527
parts = files[ i ].match( RE );
@@ -544,7 +544,7 @@ function datapackage( files ) {
544544
obj.format = 'json';
545545
obj.mediatype = 'application/json';
546546
}
547-
arr[ i ] = obj;
547+
arr.push( obj );
548548
}
549549
pkg.resources = arr;
550550
pkg = JSON.stringify( pkg, null, ' ' );

0 commit comments

Comments
 (0)