Skip to content

Commit

Permalink
Update Flow to 0.14
Browse files Browse the repository at this point in the history
Fixes issue with fs.readFileSync return type
See: facebook/flow#416
facebook/flow@v0.13.1...v0.14.0
  • Loading branch information
Alan Cohen committed Jul 30, 2015
1 parent 68adaec commit 116d7e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -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",
Expand Down
3 changes: 1 addition & 2 deletions src/api/common/schema-validator.js
Expand Up @@ -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);
}
Expand Down

0 comments on commit 116d7e0

Please sign in to comment.