From 3b9e65589ba91bf4ec139e3e267c6d72ce66a85c Mon Sep 17 00:00:00 2001 From: aayush0325 Date: Sat, 1 Feb 2025 12:34:05 +0000 Subject: [PATCH] fix: remove redundant code in accessor array functions of blas/ext/base/* --- 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: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../@stdlib/blas/ext/base/gsumkbn/lib/accessors.js | 4 ---- .../@stdlib/blas/ext/base/gsumpw/lib/accessors.js | 4 ---- 2 files changed, 8 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsumkbn/lib/accessors.js b/lib/node_modules/@stdlib/blas/ext/base/gsumkbn/lib/accessors.js index a97c29efc882..c176410f934d 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsumkbn/lib/accessors.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsumkbn/lib/accessors.js @@ -64,10 +64,6 @@ function gsumkbn( N, x, strideX, offsetX ) { var c; var i; - if ( N <= 0 ) { - return 0.0; - } - // Cache reference to array data: xbuf = x.data; diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsumpw/lib/accessors.js b/lib/node_modules/@stdlib/blas/ext/base/gsumpw/lib/accessors.js index 3a88921c9b7a..967f668608a7 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsumpw/lib/accessors.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsumpw/lib/accessors.js @@ -77,10 +77,6 @@ function gsumpw( N, x, strideX, offsetX ) { var s; var i; - if ( N <= 0 ) { - return 0.0; - } - // Cache reference to array data: xbuf = x.data;