Skip to content

Commit e653b50

Browse files
committed
fix(bench): replace empty arrow functions with expression-bodied no-ops
--- 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: 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: passed - task: lint_license_headers status: passed ---
1 parent dca86d1 commit e653b50

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

  • lib/node_modules/@stdlib/bench/harness/docs/types

lib/node_modules/@stdlib/bench/harness/docs/types/test.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import bench = require( './index' );
2323

2424
// FUNCTIONS //
2525

26-
const benchmark = () => {};
26+
const benchmark = (): void => undefined;
2727

2828

2929
// TESTS //
@@ -114,8 +114,8 @@ const benchmark = () => {};
114114
// Attached to the main export is a `createHarness` method which returns a Harness..
115115
{
116116
bench.createHarness(); // $ExpectType Harness
117-
bench.createHarness( (): void => {} ); // $ExpectType Harness
118-
bench.createHarness( { 'autoclose': true }, (): void => {} ); // $ExpectType Harness
117+
bench.createHarness( (): void => undefined ); // $ExpectType Harness
118+
bench.createHarness( { 'autoclose': true }, (): void => undefined ); // $ExpectType Harness
119119
}
120120

121121
// The compiler throws an error if the `createHarness` method is provided an `autoclose` option which is not a boolean...
@@ -127,12 +127,12 @@ const benchmark = () => {};
127127
bench.createHarness( { 'autoclose': {} } ); // $ExpectError
128128
bench.createHarness( { 'autoclose': ( x: number ): number => x } ); // $ExpectError
129129

130-
bench.createHarness( { 'autoclose': 123 }, (): void => {} ); // $ExpectError
131-
bench.createHarness( { 'autoclose': 'abc' }, (): void => {} ); // $ExpectError
132-
bench.createHarness( { 'autoclose': null }, (): void => {} ); // $ExpectError
133-
bench.createHarness( { 'autoclose': [] }, (): void => {} ); // $ExpectError
134-
bench.createHarness( { 'autoclose': {} }, (): void => {} ); // $ExpectError
135-
bench.createHarness( { 'autoclose': ( x: number ): number => x }, (): void => {} ); // $ExpectError
130+
bench.createHarness( { 'autoclose': 123 }, (): void => undefined ); // $ExpectError
131+
bench.createHarness( { 'autoclose': 'abc' }, (): void => undefined ); // $ExpectError
132+
bench.createHarness( { 'autoclose': null }, (): void => undefined ); // $ExpectError
133+
bench.createHarness( { 'autoclose': [] }, (): void => undefined ); // $ExpectError
134+
bench.createHarness( { 'autoclose': {} }, (): void => undefined ); // $ExpectError
135+
bench.createHarness( { 'autoclose': ( x: number ): number => x }, (): void => undefined ); // $ExpectError
136136
}
137137

138138
// The compiler throws an error if the `createHarness` method is provided a `callback` argument which is not a function...
@@ -148,7 +148,7 @@ const benchmark = () => {};
148148

149149
// The compiler throws an error if the `createHarness` method is provided an incorrect number of arguments...
150150
{
151-
bench.createHarness( {}, (): void => {}, {} ); // $ExpectError
151+
bench.createHarness( {}, (): void => undefined, {} ); // $ExpectError
152152
}
153153

154154
// Attached to the main export is a `createStream` method which returns a stream..

0 commit comments

Comments
 (0)