Skip to content

Commit 8bdf018

Browse files
committed
chore: fix JavaScript lint errors
--- 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: 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: na - task: lint_license_headers status: passed ---
1 parent cf9c1fd commit 8bdf018

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • lib/node_modules/@stdlib/datasets/us-states-names-capitals/examples

lib/node_modules/@stdlib/datasets/us-states-names-capitals/examples/index.js

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

1919
'use strict';
2020

21+
var format = require( '@stdlib/string/format' );
2122
var capitalize = require( '@stdlib/string/capitalize' );
2223
var table = require( './../lib' );
2324

@@ -38,7 +39,7 @@ function getCapital( state ) {
3839

3940
// Ensure a valid state name was provided...
4041
if ( capital === void 0 ) {
41-
throw new Error( 'unrecognized state name. Value: `' + state + '`.' );
42+
throw new Error( format( 'unrecognized state name. Value: `%s`.', state ) );
4243
}
4344
return capital;
4445
}

0 commit comments

Comments
 (0)