Skip to content

Commit f59a264

Browse files
committed
refactor: remove obsolete branch
Top-level accessor utilities validate ndarray attributes, such as shape elements being nonnegative integers, etc.
1 parent 061365c commit f59a264

File tree

1 file changed

+0
-3
lines changed
  • lib/node_modules/@stdlib/ndarray/zeros-like/lib

1 file changed

+0
-3
lines changed

lib/node_modules/@stdlib/ndarray/zeros-like/lib/main.js

-3
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,6 @@ function zerosLike( x ) {
129129
ndims = sh.length;
130130
if ( ndims > 0 ) {
131131
len = numel( sh );
132-
if ( len < 0 ) {
133-
len = 0; // note: we should only get here if an inferred shape is invalid (i.e., contains negative dimension sizes)
134-
}
135132
st = shape2strides( sh, order );
136133
} else {
137134
// For 0-dimensional arrays, the buffer should contain a single element...

0 commit comments

Comments
 (0)