Skip to content

Commit 85bcbba

Browse files
committed
Auto-generated commit
1 parent ed6cfea commit 85bcbba

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,7 @@ A total of 24 issues were closed in this release:
588588

589589
<details>
590590

591+
- [`d13a0fc`](https://github.com/stdlib-js/stdlib/commit/d13a0fca7737b8aa0206943ff11a5ca4f0cb3527) - **refactor:** remove unreachable path _(by Athan Reines)_
591592
- [`ce50d3e`](https://github.com/stdlib-js/stdlib/commit/ce50d3ecca395ef29f3883a70d8fbf1b3e7f38c1) - **docs:** fix grammar _(by Athan Reines)_
592593
- [`a86f514`](https://github.com/stdlib-js/stdlib/commit/a86f514dee23ab0536fe9e697e48a0fb2a9c5a22) - **test:** tweak test description _(by Philipp Burckhardt)_
593594
- [`00f16f2`](https://github.com/stdlib-js/stdlib/commit/00f16f2e8c6f5b675e586e8f1434eae9441787ac) - **test:** fix test description _(by Philipp Burckhardt)_

every/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ var validate = require( './validate.js' );
5353
* @throws {TypeError} first argument must be an ndarray-like object
5454
* @throws {TypeError} options argument must be an object
5555
* @throws {RangeError} dimension indices must not exceed input ndarray bounds
56-
* @throws {RangeError} number of dimension indices must not exceed the number of input ndarray dimensions
56+
* @throws {Error} dimension indices must be unique
5757
* @throws {Error} must provide valid options
5858
* @returns {ndarray} output ndarray
5959
*

every/lib/validate.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,6 @@ function validate( opts, ndims, options ) {
7676
if ( tmp.length !== opts.dims.length ) {
7777
return new Error( format( 'invalid option. `%s` option contains duplicate indices. Option: [%s].', 'dims', join( opts.dims, ',' ) ) );
7878
}
79-
if ( tmp.length > ndims ) {
80-
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, ',' ) ) );
81-
}
8279
opts.dims = tmp;
8380
}
8481
return null;

0 commit comments

Comments
 (0)