Skip to content

Commit 2773989

Browse files
committed
fix: lint error
--- 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: passed - 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: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent f60bc95 commit 2773989

File tree

2 files changed

+4
-4
lines changed
  • lib/node_modules/@stdlib/ndarray/base/nullary-strided1d-dispatch

2 files changed

+4
-4
lines changed

lib/node_modules/@stdlib/ndarray/base/nullary-strided1d-dispatch/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ bench( pkg+'::no_new', function benchmark( b ) {
8686

8787
b.tic();
8888
for ( i = 0; i < b.iterations; i++ ) {
89-
v = fcn( table, [ dtypes ], dtypes, policies );
89+
v = fcn( table, [ dtypes ], policies );
9090
if ( typeof v !== 'object' ) {
9191
b.fail( 'should return an object' );
9292
}

lib/node_modules/@stdlib/ndarray/base/nullary-strided1d-dispatch/lib/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function types2enums( types ) {
8787
* @throws {TypeError} first argument must be an object having valid properties
8888
* @throws {Error} first argument must be an object having valid properties
8989
* @throws {TypeError} second argument must be an array containing arrays of supported data types
90-
* @throws {TypeError} fourth argument must be an object having supported policies
90+
* @throws {TypeError} third argument must be an object having supported policies
9191
* @throws {TypeError} options argument must be an object
9292
* @throws {TypeError} must provide valid options
9393
* @returns {NullaryStrided1dDispatch} instance
@@ -156,10 +156,10 @@ function NullaryStrided1dDispatch( table, odtypes, policies, options ) {
156156
}
157157
}
158158
if ( !isObject( policies ) ) {
159-
throw new TypeError( format( 'invalid argument. Fourth argument must be an object. Value: `%s`.', table ) );
159+
throw new TypeError( format( 'invalid argument. Third argument must be an object. Value: `%s`.', table ) );
160160
}
161161
if ( !isOutputDataTypePolicy( policies.output ) ) {
162-
throw new TypeError( format( 'invalid argument. Fourth argument must be an object having a supported output data type policy. Value: `%s`.', policies.output ) );
162+
throw new TypeError( format( 'invalid argument. Third argument must be an object having a supported output data type policy. Value: `%s`.', policies.output ) );
163163
}
164164
this._table = {
165165
'default': table.default,

0 commit comments

Comments
 (0)