Skip to content

Commit ea18ca4

Browse files
sujal sunil chaudharysujal sunil chaudhary
authored andcommitted
chore: fix JavaScript lint errors (issue #8483)
--- 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 037800a commit ea18ca4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • lib/node_modules/@stdlib/fs/read-dir/examples

lib/node_modules/@stdlib/fs/read-dir/examples/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,21 @@
1818

1919
'use strict';
2020

21+
var isError = require( '@stdlib/assert/is-error' );
2122
var readDir = require( './../lib' );
2223

2324
/* Sync */
2425

2526
var out = readDir.sync( __dirname );
2627
// returns <Array>
2728

28-
console.log( out instanceof Error );
29+
console.log( isError( out ) );
2930
// => false
3031

3132
out = readDir.sync( 'beepboop' );
3233
// returns <Error>
3334

34-
console.log( out instanceof Error );
35+
console.log( isError( out ) );
3536
// => true
3637

3738
/* Async */

0 commit comments

Comments
 (0)