Skip to content

Commit 4d5b7f5

Browse files
committed
fix: replace new Array() and string concat in error messages
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: passed - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 217401a commit 4d5b7f5

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

  • lib/node_modules/@stdlib

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,17 @@ 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-
x = new Array( 5 ); // sparse array
76+
x = [];// sparse array
77+
x.length = 5;
7778
y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
7879

7980
expected = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
8081

8182
ahavercosBy( x.length, x, 1, 0, y, 1, 0, accessor );
8283
t.deepEqual( y, expected, 'deep equal' );
8384

84-
x = new Array( 5 ); // sparse array
85+
x = []; // sparse array
86+
x.length = 5;
8587
x[ 2 ] = rand();
8688
y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
8789

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function read( file, next ) {
4242

4343
function onFile( error ) {
4444
if ( error ) {
45-
error = new Error( 'unable to read file: '+file );
45+
error = new Error( 'unable to read file:%s ', file );
4646
return next( error );
4747
}
4848
console.log( 'Successfully read file: %s', file );

0 commit comments

Comments
 (0)