mirror of
https://github.com/node-ebics/node-ebics-client.git
synced 2025-08-14 03:35:36 +00:00
Add keys generation and code optimization
This commit is contained in:
@@ -14,14 +14,6 @@ module.exports = (pathToFile) => {
|
||||
|
||||
write(data) {
|
||||
fs.writeFileSync(path, data, { encoding: 'utf8' });
|
||||
return this;
|
||||
},
|
||||
|
||||
hasData() {
|
||||
if (fs.existsSync(path))
|
||||
return this.read() !== '';
|
||||
|
||||
return false;
|
||||
},
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user