Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions lib/node_modules/@stdlib/ndarray/some-by/lib/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ function validate( opts, ndims, options ) {
if ( tmp.length !== opts.dims.length ) {
return new Error( format( 'invalid option. `%s` option contains duplicate indices. Option: [%s].', 'dims', join( opts.dims, ',' ) ) );
}
if ( tmp.length > ndims ) {
return new RangeError( format( 'invalid option. `%s` option specifies more dimensions than exists in the input array. Number of dimensions: %d. Option: [%s].', 'dims', ndims, join( opts.dims, ',' ) ) );
}
opts.dims = tmp;
}
return null;
Expand Down
Loading