Skip to content

Commit

Permalink
Changed fs event handlers to arrow functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Paradiz authored and Henry Paradiz committed Jul 24, 2017
1 parent d8cd1c9 commit c186e10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ class ChartjsNode {
.then(buffer => {
return new BbPromise((resolve,reject) => {
var out = fs.createWriteStream(filePath);
out.on('finish', function () {
out.on('finish', () => {
return resolve();
});
out.on('error', function () {
out.on('error', () => {
return reject();
});
out.write(buffer);
Expand Down

0 comments on commit c186e10

Please sign in to comment.