Skip to content

Commit f60bc95

Browse files
committed
fix: lint errors
--- 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: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - 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 1c2a455 commit f60bc95

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/node_modules/@stdlib/ndarray/base/nullary-strided1d-dispatch/benchmark/benchmark.assign.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' );
2525
var pow = require( '@stdlib/math/base/special/pow' );
2626
var dtypes = require( '@stdlib/array/dtypes' );
2727
var uniform = require( '@stdlib/random/array/uniform' );
28-
var zerosLike = require( '@stdlib/ndarray/zeros-like' );
2928
var scalar2ndarray = require( '@stdlib/ndarray/from-scalar' );
3029
var ndarray = require( '@stdlib/ndarray/base/ctor' );
3130
var gsorthp = require( '@stdlib/blas/ext/base/ndarray/gsorthp' );
@@ -77,18 +76,18 @@ function createBenchmark( len ) {
7776
* @param {Benchmark} b - benchmark instance
7877
*/
7978
function benchmark( b ) {
80-
var o;
79+
var out;
8180
var i;
8281

8382
b.tic();
8483
for ( i = 0; i < b.iterations; i++ ) {
85-
o = nullary.assign( x, o );
86-
if ( typeof o !== 'object' ) {
84+
out = nullary.assign( x, o );
85+
if ( typeof out !== 'object' ) {
8786
b.fail( 'should return an ndarray' );
8887
}
8988
}
9089
b.toc();
91-
if ( isnan( o.get( i%len ) ) ) {
90+
if ( isnan( out.get( i%len ) ) ) {
9291
b.fail( 'should not return NaN' );
9392
}
9493
b.pass( 'benchmark finished' );

0 commit comments

Comments
 (0)