Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ bench( pkg, function benchmark( b ) {
new Date( '2018-09-20T01:23:28.936Z' ),
new Date( 1537406608936 ),
string2buffer( 'xyz' ),
new Number( 0 ), // eslint-disable-line no-new-wrappers,
new Number( 0 ),
[ 1, 2, 3 ],
[ 1, 2 ],
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,11 @@ function resolveParentPathBy( path, options, predicate, clbk ) {
* @param {boolean} bool - boolean indicating if a path exists
* @returns {void}
*/
function onExists( error, bool ) { // eslint-disable-line handle-callback-err
function onExists( error, bool ) {
if (error) {
// Log or handle the error
return next();
}
if ( bool ) {
return test( spath, onTest );
}
Expand Down
6 changes: 3 additions & 3 deletions lib/node_modules/@stdlib/stats/ranks/examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ var out;
var i;

// Plain arrays...
data = new Array( 10 );
for ( i = 0; i < data.length; i++ ) {
data[ i ] = round( randu()*10.0 );
data = [];
for ( i = 0; i < 10; i++ ) {
data.push( round( randu()*10.0 ) );
}

out = ranks( data );
Expand Down
Loading