Skip to content

Commit 1d1e8b7

Browse files
authored
refactor: remove redundant code in accessor functions
PR-URL: #5014 Ref: #4960 Reviewed-by: Athan Reines <[email protected]>
1 parent 9ce3d01 commit 1d1e8b7

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

lib/node_modules/@stdlib/blas/ext/base/gsumkbn/lib/accessors.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,6 @@ function gsumkbn( N, x, strideX, offsetX ) {
6464
var c;
6565
var i;
6666

67-
if ( N <= 0 ) {
68-
return 0.0;
69-
}
70-
7167
// Cache reference to array data:
7268
xbuf = x.data;
7369

lib/node_modules/@stdlib/blas/ext/base/gsumpw/lib/accessors.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ function gsumpw( N, x, strideX, offsetX ) {
7777
var s;
7878
var i;
7979

80-
if ( N <= 0 ) {
81-
return 0.0;
82-
}
83-
8480
// Cache reference to array data:
8581
xbuf = x.data;
8682

0 commit comments

Comments
 (0)