Skip to content

Commit eeda26b

Browse files
committed
fix throw->throws typo in readFileSync()
1 parent 0786584 commit eeda26b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function readFileSync (file, options) {
2626
options = {encoding: options}
2727
}
2828

29-
var shouldThrow = 'throws' in options ? options.throw : true
29+
var shouldThrow = 'throws' in options ? options.throws : true
3030

3131
if (shouldThrow) { // i.e. throw on invalid JSON
3232
return JSON.parse(fs.readFileSync(file, options), options.reviver)

0 commit comments

Comments
 (0)