Skip to content

Commit 086d2d6

Browse files
parthodas23kgryte
andauthored
chore: fix JavaScript lint errors
PR-URL: #10557 Closes: #10556 Co-authored-by: Athan Reines <kgryte@gmail.com> Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent a2d1f94 commit 086d2d6

File tree

2 files changed

+4
-1
lines changed
  • lib/node_modules/@stdlib

2 files changed

+4
-1
lines changed

lib/node_modules/@stdlib/math/strided/special/ahavercos-by/test/test.ndarray.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ tape( 'the function computes the inverse half-value versed cosine via a callback
7373
ahavercosBy( x.length, x, 1, 0, y, 1, 0, accessor );
7474
t.deepEqual( y, expected, 'deep equal' );
7575

76+
// eslint-disable-next-line stdlib/no-new-array
7677
x = new Array( 5 ); // sparse array
7778
y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
7879

@@ -81,6 +82,7 @@ tape( 'the function computes the inverse half-value versed cosine via a callback
8182
ahavercosBy( x.length, x, 1, 0, y, 1, 0, accessor );
8283
t.deepEqual( y, expected, 'deep equal' );
8384

85+
// eslint-disable-next-line stdlib/no-new-array
8486
x = new Array( 5 ); // sparse array
8587
x[ 2 ] = rand();
8688
y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];

lib/node_modules/@stdlib/utils/async/for-each-right/examples/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
var resolve = require( 'path' ).resolve;
2222
var readFile = require( '@stdlib/fs/read-file' );
23+
var format = require( '@stdlib/string/format' );
2324
var forEachRightAsync = require( './../lib' );
2425

2526
var files = [
@@ -42,7 +43,7 @@ function read( file, next ) {
4243

4344
function onFile( error ) {
4445
if ( error ) {
45-
error = new Error( 'unable to read file: '+file );
46+
error = new Error( format( 'unable to read file: %s', file ) );
4647
return next( error );
4748
}
4849
console.log( 'Successfully read file: %s', file );

0 commit comments

Comments
 (0)