mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-24 06:05:51 +00:00
Update Flow to 0.14
Fixes issue with fs.readFileSync return type See: https://github.com/facebook/flow/issues/416 https://github.com/facebook/flow/compare/v0.13.1...v0.14.0
This commit is contained in:
@@ -20,8 +20,7 @@ function isValidLedgerHash(ledgerHash) {
|
||||
|
||||
function loadSchema(filepath: string): {} {
|
||||
try {
|
||||
const schemaContent: any = fs.readFileSync(filepath, 'utf8');
|
||||
return JSON.parse(schemaContent);
|
||||
return JSON.parse(fs.readFileSync(filepath, 'utf8'));
|
||||
} catch (e) {
|
||||
throw new Error('Failed to parse schema: ' + filepath);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user