Skip to content

Commit

Permalink
switched to sync version of writeFile
Browse files Browse the repository at this point in the history
  • Loading branch information
nglgzz committed Jul 14, 2017
1 parent 6c7d965 commit b82c45c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/parser/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,5 @@ walkDir(input, (map, filename) => {
}

// Write parsed map to new location.
fs.writeFile(outputFile, JSON.stringify(parsedMap, null, 2), (err) => {
if (err) {
throw err;
}
});
fs.writeFileSync(outputFile, JSON.stringify(parsedMap, null, 2));
});

0 comments on commit b82c45c

Please sign in to comment.