Skip to content

Commit 686981c

Browse files
committed
refactor: move assignment expression
--- 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: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 16c408d commit 686981c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • lib/node_modules/@stdlib/ndarray/base/unary-reduce-strided1d/lib

lib/node_modules/@stdlib/ndarray/base/unary-reduce-strided1d/lib/main.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,6 @@ function unaryReduceStrided1d( fcn, arrays, dims, options ) { // eslint-disable-
450450
}
451451
return UNARY[ K ]( fcn, arr, views, sl, strategy, opts );
452452
}
453-
sy = y.strides;
454-
455453
// Determine whether the loop dimensions have only **one** non-singleton dimension (e.g., shape=[10,1,1,1]) so that we can treat loop iteration as being equivalent to one-dimensional iteration...
456454
if ( ns === K-1 ) {
457455
// Get the index of the non-singleton dimension...
@@ -470,6 +468,7 @@ function unaryReduceStrided1d( fcn, arrays, dims, options ) { // eslint-disable-
470468
}
471469
return UNARY[ 1 ]( fcn, arr, views, sl, strategy, opts );
472470
}
471+
sy = y.strides;
473472
iox = iterationOrder( sl ); // +/-1
474473
ioy = iterationOrder( sy ); // +/-1
475474

0 commit comments

Comments
 (0)