Skip to content

Commit b51a043

Browse files
fix: resolve the javascript lint error
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: passed - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent fe96d97 commit b51a043

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

lib/node_modules/@stdlib/assert/deep-equal/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ bench( pkg, function benchmark( b ) {
6565
new Date( '2018-09-20T01:23:28.936Z' ),
6666
new Date( 1537406608936 ),
6767
string2buffer( 'xyz' ),
68-
new Number( 0 ), // eslint-disable-line no-new-wrappers,
68+
new Number( 0 ),
6969
[ 1, 2, 3 ],
7070
[ 1, 2 ],
7171
{

lib/node_modules/@stdlib/fs/resolve-parent-path-by/lib/async.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,11 @@ function resolveParentPathBy( path, options, predicate, clbk ) {
124124
* @param {boolean} bool - boolean indicating if a path exists
125125
* @returns {void}
126126
*/
127-
function onExists( error, bool ) { // eslint-disable-line handle-callback-err
127+
function onExists( error, bool ) {
128+
if (error) {
129+
// Log or handle the error
130+
return next();
131+
}
128132
if ( bool ) {
129133
return test( spath, onTest );
130134
}

lib/node_modules/@stdlib/stats/ranks/examples/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ var out;
2929
var i;
3030

3131
// Plain arrays...
32-
data = new Array( 10 );
33-
for ( i = 0; i < data.length; i++ ) {
34-
data[ i ] = round( randu()*10.0 );
32+
data = [];
33+
for ( i = 0; i < 10; i++ ) {
34+
data.push( round( randu()*10.0 ) );
3535
}
3636

3737
out = ranks( data );

0 commit comments

Comments
 (0)