Skip to content
Merged
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
12 changes: 6 additions & 6 deletions lib/node_modules/@stdlib/blas/base/idamax/test/test.ndarray.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@
idx = idamax( 4, x, 1, 0 );
t.strictEqual( idx, expected, 'returns expected value' );

x = new Float64Array( [
x = new Float64Array([
0.2, // 1
-0.6, // 2
0.3, // 3
5.0,
5.0
] );
]);
expected = 1;

idx = idamax( 3, x, 1, 0 );
Expand All @@ -77,11 +77,11 @@
var idx;
var x;

x = new Float64Array( [
x = new Float64Array([
1.0,
2.0,
3.0
] );
]);
expected = -1;

idx = idamax( 0, x, 1, 0 );
Expand All @@ -95,11 +95,11 @@
var idx;
var x;

x = new Float64Array( [
x = new Float64Array([
1.0,
2.0,
3.0
] );
]);
expected = 0;

idx = idamax( 1, x, 1, 1 );
Expand All @@ -120,7 +120,7 @@
idx = idamax( 3, x, -1, x.length-4 );
t.strictEqual( idx, 1, 'returns expected value' );

x = new Float64Array( [ 3.0, 999.9, 999.9, -4.0, 999.9, 999.9, 1.0, 999.9, 999.9, 15.0, 999.9, 999.9, 4.0, 999.9, 999.9, 3.0 ] );

Check warning on line 123 in lib/node_modules/@stdlib/blas/base/idamax/test/test.ndarray.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

This line has a length of 133. Maximum allowed is 80
idx = idamax( 6, x, -3, x.length-1 );
t.strictEqual( idx, 2, 'returns expected value' );

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
Loading