Skip to content
Closed
Show file tree
Hide file tree
Changes from all 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
27 changes: 14 additions & 13 deletions lib/node_modules/@stdlib/_tools/github/star-repo/lib/factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,20 @@ function factory( options, clbk ) {
throw new Error( format( 'invalid argument. Repository slug must consist of an owner and a repository (e.g., "stdlib-js/utils"). Value: `%s`.', slug ) );
}
query( slug, opts, done );
/**
* Callback invoked after receiving an API response.
*
* @private
* @param {(Error|null)} error - error object
* @param {Object} info - response info
* @returns {void}
*/
function done( error, info ) {
error = error || null;
info = info || null;
clbk( error, info );
}
}

/**
* Callback invoked after receiving an API response.
*
* @private
* @param {(Error|null)} error - error object
* @param {Object} info - response info
* @returns {void}
*/
function done( error, info ) {
error = error || null;
info = info || null;
clbk( error, info );
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* ];
*
* var sigs = signatures( dtypes, dtypes, dtypes );
* // returns [ 'float64', 'float64', 'float64', ... ]
* // returns [ 'float32', 'float32', 'float32', ... ]
*/

// MODULES //
Expand Down