Skip to content

Commit 7b02c16

Browse files
committed
chore: minor clean-up
1 parent efce610 commit 7b02c16

File tree

6 files changed

+20
-25
lines changed

6 files changed

+20
-25
lines changed

lib/node_modules/@stdlib/array/base/cusome/lib/assign.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function indexed( x, n, y, stride, offset ) {
7070
}
7171

7272
/**
73-
* Cumulatively tests whether at least `n` array elements in accessor array are truthy.
73+
* Cumulatively tests whether at least `n` array elements in an accessor array are truthy.
7474
*
7575
* @private
7676
* @param {Object} x - input array object
@@ -128,15 +128,14 @@ function accessors( x, n, y, stride, offset ) {
128128
flg = true;
129129
}
130130
}
131-
132131
yset( ydata, io, flg );
133132
io += stride;
134133
}
135134
return ydata;
136135
}
137136

138137
/**
139-
* Cumulatively tests whether at least `n` array elements in a provided complex number are truthy and assigns results to provided output array.
138+
* Cumulatively tests whether at least `n` array elements in a provided complex number array are truthy.
140139
*
141140
* @private
142141
* @param {Collection} x - array containing interleaved real and imaginary components

lib/node_modules/@stdlib/array/base/cusome/test/test.assign.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
* limitations under the License.
1717
*/
1818

19+
/* eslint-disable max-len */
20+
1921
'use strict';
2022

2123
// MODULES //
@@ -166,9 +168,7 @@ tape( 'the function cumulatively tests whether at least `n` array elements are t
166168
y = [ false, null, false, null, false, null, false, null, false, null ];
167169

168170
actual = cusome( x, 2, y, 2, 0 );
169-
expected = [
170-
false, null, false, null, false, null, false, null, false, null
171-
];
171+
expected = [ false, null, false, null, false, null, false, null, false, null ];
172172

173173
t.strictEqual( actual, y, 'returns expected value' );
174174
t.deepEqual( actual, expected, 'returns expected value' );
@@ -209,9 +209,7 @@ tape( 'the function cumulatively tests whether at least `n` array elements are t
209209
var x;
210210
var y;
211211

212-
x = new Complex128Array([
213-
1.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 1.0, 0.0, 1.0
214-
]);
212+
x = new Complex128Array([ 1.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 1.0, 0.0, 1.0 ]);
215213
y = [ false, true, false, true, false ];
216214

217215
actual = cusome( x, 1, y, 1, 0 );
@@ -220,9 +218,7 @@ tape( 'the function cumulatively tests whether at least `n` array elements are t
220218
t.strictEqual( actual, y, 'returns expected value' );
221219
t.deepEqual( actual, expected, 'returns expected value' );
222220

223-
x = new Complex128Array([
224-
0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0
225-
]);
221+
x = new Complex128Array([ 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0 ]);
226222
y = [ false, null, false, null, false, null, false, null, false, null ];
227223

228224
actual = cusome( x, 2, y, 2, 0 );

lib/node_modules/@stdlib/error/tools/fmtprodmsg-factory/docs/types/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import fmtprodmsgFactory = require( './index' );
2121

2222
// TESTS //
2323

24-
// The function returns an returns an error formatting function...
24+
// The function returns an error formatting function...
2525
{
2626
fmtprodmsgFactory( {} ); // $ExpectType FormatProdErrorMsgFunction
2727
}
@@ -42,7 +42,7 @@ import fmtprodmsgFactory = require( './index' );
4242
fcn( '3', 'wrong_type' ); // $ExpectType string
4343
}
4444

45-
// The compiler throws an error if the function is provided an `url` option which is not a string...
45+
// The compiler throws an error if the function is provided a `url` option which is not a string...
4646
{
4747
fmtprodmsgFactory( { 'url': true } ); // $ExpectError
4848
fmtprodmsgFactory( { 'url': false } ); // $ExpectError

lib/node_modules/@stdlib/error/tools/fmtprodmsg/docs/types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import fmtprodmsg = require( './index' );
2121

2222
// TESTS //
2323

24-
// The function returns an string...
24+
// The function returns a string...
2525
{
2626
fmtprodmsg( '1' ); // $ExpectType string
2727
fmtprodmsg( '3', 'wrong_type' ); // $ExpectType string

lib/node_modules/@stdlib/fs/rename/docs/types/test.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
import rename = require( './index' );
2020

21-
const done = ( error: Error | null ) => {
21+
const done = ( error: Error | null ): void => {
2222
if ( error ) {
2323
throw error;
2424
}
@@ -94,14 +94,14 @@ const done = ( error: Error | null ) => {
9494

9595
// The compiler throws an error if the `sync` method is provided a second argument which is not a string...
9696
{
97-
rename.sync( './beep/boop.txt', 1, ); // $ExpectError
98-
rename.sync( './beep/boop.txt', false, ); // $ExpectError
99-
rename.sync( './beep/boop.txt', true, ); // $ExpectError
100-
rename.sync( './beep/boop.txt', null, ); // $ExpectError
101-
rename.sync( './beep/boop.txt', undefined, ); // $ExpectError
102-
rename.sync( './beep/boop.txt', [], ); // $ExpectError
103-
rename.sync( './beep/boop.txt', {}, ); // $ExpectError
104-
rename.sync( './beep/boop.txt', ( x: number ): number => x, ); // $ExpectError
97+
rename.sync( './beep/boop.txt', 1 ); // $ExpectError
98+
rename.sync( './beep/boop.txt', false ); // $ExpectError
99+
rename.sync( './beep/boop.txt', true ); // $ExpectError
100+
rename.sync( './beep/boop.txt', null ); // $ExpectError
101+
rename.sync( './beep/boop.txt', undefined ); // $ExpectError
102+
rename.sync( './beep/boop.txt', [] ); // $ExpectError
103+
rename.sync( './beep/boop.txt', {} ); // $ExpectError
104+
rename.sync( './beep/boop.txt', ( x: number ): number => x ); // $ExpectError
105105
}
106106

107107
// The compiler throws an error if the `sync` method is provided an unsupported number of arguments...

lib/node_modules/@stdlib/slice/base/shape/docs/types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import sliceShape = require( './index' );
2222

2323
// TESTS //
2424

25-
// The function returns a number...
25+
// The function returns an array of numbers...
2626
{
2727
sliceShape( new MultiSlice( null, null ) ); // $ExpectType number[]
2828
sliceShape( new MultiSlice( null, null, null ) ); // $ExpectType number[]

0 commit comments

Comments
 (0)