Skip to content

Commit dfb6f91

Browse files
chore: fix JavaScript lint errors
PR-URL: #8293 Closes: #8282 Co-authored-by: Athan Reines <kgryte@gmail.com> Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent acc8798 commit dfb6f91

File tree

1 file changed

+3
-2
lines changed
  • lib/node_modules/@stdlib/fs/read-file/examples

1 file changed

+3
-2
lines changed

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

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

1919
'use strict';
2020

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

2324
/* Sync */
2425

2526
var file = readFile.sync( __filename, 'utf8' );
2627
// returns <string>
2728

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

3132
file = readFile.sync( 'beepboop', {
3233
'encoding': 'utf8'
3334
});
3435
// returns <Error>
3536

36-
console.log( file instanceof Error );
37+
console.log( isError( file ) );
3738
// => true
3839

3940
/* Async */

0 commit comments

Comments
 (0)