Skip to content

Commit

Permalink
Add noop as callback for fs.writeFile (#835)
Browse files Browse the repository at this point in the history
Without it, it throws a deprecation warning.
  • Loading branch information
mirka committed Sep 7, 2018
1 parent 237a5c8 commit f0dbb6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/app.jsx
Expand Up @@ -215,7 +215,7 @@ export const App = connect(mapStateToProps, mapDispatchToProps)(
type: 'base64',
})
)
.then(blob => fs.writeFile(command.filename, blob, 'base64'))
.then(blob => fs.writeFile(command.filename, blob, 'base64', noop))
.catch(console.log); // eslint-disable-line no-console
}

Expand Down

0 comments on commit f0dbb6e

Please sign in to comment.