Skip to content

Commit

Permalink
Merge pull request #11 from R4mpancy/node10-fix
Browse files Browse the repository at this point in the history
Fixed deprecation warning
  • Loading branch information
jasonkneen authored Nov 8, 2018
2 parents 1c10834 + 021b813 commit 99fd6e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/tith.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ function createTiAppFile(fromPath) {

function copyFile(fromPath, toPath) {
fs.readFile(fromPath, function (err, data) {
fs.writeFile(toPath, data);
fs.writeFile(toPath, data, (err) => {
if(err) throw err;
});
});
}

Expand Down

0 comments on commit 99fd6e1

Please sign in to comment.