mirror of
https://github.com/node-ebics/node-ebics-client.git
synced 2026-10-07 12:49:14 +00:00
Code optimization
This commit is contained in:
1 parent
9660242234
commit
b259ac76d6
2 files changed
+11
-17
No files matched your search
@@ -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