Skip to content

Commit 07f7f98

Browse files
authored
chore: clean-up
Signed-off-by: Athan <kgryte@gmail.com>
1 parent 67f86f1 commit 07f7f98

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

  • lib/node_modules/@stdlib/napi/argv-strided-booleanarray/lib

lib/node_modules/@stdlib/napi/argv-strided-booleanarray/lib/native.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
// MODULES //
2222

2323
var reinterpret = require( '@stdlib/strided/base/reinterpret-boolean' );
24-
var isBooleanArray = require( '@stdlib/assert/is-booleanarray' );
2524
var addon = require( './../src/addon.node' );
2625

2726

@@ -34,7 +33,7 @@ var addon = require( './../src/addon.node' );
3433
* @param {NonNegativeInteger} N - number of indexed elements
3534
* @param {BooleanArray} v - input array
3635
* @param {integer} stride - stride length
37-
* @returns {Uint8Array} input array
36+
* @returns {BooleanArray} input array
3837
*
3938
* @example
4039
* var BooleanArray = require( '@stdlib/array/bool' );
@@ -44,10 +43,7 @@ var addon = require( './../src/addon.node' );
4443
* wrapper( x.length, x, 1 );
4544
*/
4645
function wrapper( N, v, stride ) {
47-
if ( isBooleanArray( v ) ) {
48-
v = reinterpret( v, 0 );
49-
}
50-
addon( N, v, stride );
46+
addon( N, reinterpret( v, 0 ), stride );
5147
return v;
5248
}
5349

0 commit comments

Comments
 (0)