mirror of
https://github.com/node-ebics/node-ebics-client.git
synced 2025-08-14 03:35:36 +00:00
Code optimization
This commit is contained in:
@@ -9,7 +9,7 @@ module.exports = (pathToFile) => {
|
||||
write(data) {
|
||||
return new Promise((resolve, reject) => {
|
||||
fs.writeFile(path, data, { encoding: 'utf8' }, (error) => {
|
||||
if (error) throw error;
|
||||
if (error) reject(error);
|
||||
|
||||
return resolve();
|
||||
});
|
||||
|
Reference in New Issue
Block a user