Skip to content

chore: fix JavaScript lint errors #5515

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 5, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions lib/node_modules/@stdlib/_tools/github/get/lib/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@
* @returns {Array} cache
*/
function create( size ) {
return new Array( size );
const cache = [];
for (let i = 0; i < size; i++) {
cache.push(undefined);
}
return cache;
}


// EXPORTS //

module.exports = create;
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ var debug = logger( 'browser-entry-points:sync' );
* var pkgs = [ '/foo/bar/baz' ];
*
* var entries = entryPoints( pkgs );
* // returns [{...}]
* // throws <Error>
*/
function entryPoints( pkgs, options ) {
var results;
Expand Down