Merge pull request #469 from lumberj/update-flow

Update Flow to 0.14
This commit is contained in:
Alan Cohen
2015-07-30 11:09:57 -07:00
2 changed files with 2 additions and 3 deletions

View File

@@ -39,7 +39,7 @@
"eslint": "^0.24.0",
"eslint-plugin-flowtype": "^1.0.0",
"eventemitter2": "^0.4.14",
"flow-bin": "^0.13.1",
"flow-bin": "^0.14",
"gulp": "~3.8.10",
"gulp-bump": "~0.1.13",
"gulp-rename": "~1.2.0",

View File

@@ -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);
}