Skip to content

Commit 9c305cb

Browse files
feat: fix the newArray lint error for js file
--- 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: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: passed - 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 e7292ba commit 9c305cb

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • lib/node_modules/@stdlib/utils/async/reduce/benchmark

lib/node_modules/@stdlib/utils/async/reduce/benchmark/benchmark.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ bench( pkg, function benchmark( b ) {
4141
clbk( null, acc );
4242
}
4343
}
44+
45+
// eslint-disable-next-line stdlib/no-new-array
4446
arr = new Array( 100 );
4547
len = arr.length;
4648
for ( i = 0; i < len; i++ ) {
@@ -86,6 +88,8 @@ bench( pkg+':series=false', function benchmark( b ) {
8688
opts = {
8789
'series': false
8890
};
91+
92+
// eslint-disable-next-line stdlib/no-new-array
8993
arr = new Array( 100 );
9094
len = arr.length;
9195
for ( i = 0; i < len; i++ ) {
@@ -131,6 +135,8 @@ bench( pkg+':limit=3', function benchmark( b ) {
131135
opts = {
132136
'limit': 3
133137
};
138+
139+
// eslint-disable-next-line stdlib/no-new-array
134140
arr = new Array( 100 );
135141
len = arr.length;
136142
for ( i = 0; i < len; i++ ) {

0 commit comments

Comments
 (0)