Skip to content

Commit 508ad04

Browse files
committed
Avoid getter
1 parent 6201b12 commit 508ad04

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/blas/sdot/lib

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/blas/sdot/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ function sdot( x, y, options ) {
111111
}
112112
x = array( x, opts );
113113
y = array( y, opts );
114-
if ( x.shape.length !== 1 ) {
114+
if ( x.ndims !== 1 ) {
115115
throw new TypeError( 'invalid argument. First argument must be either an array-like object or ndarray which can be cast to a 1-dimensional ndarray. Value: `' + x + '`.' );
116116
}
117-
if ( y.shape.length !== 1 ) {
117+
if ( y.ndims !== 1 ) {
118118
throw new TypeError( 'invalid argument. Second argument must be either an array-like object or ndarray which can be cast to a 1-dimensional ndarray. Value: `' + y + '`.' );
119119
}
120120
}

0 commit comments

Comments
 (0)