mirror of
https://github.com/zigholding/obsidian-notesync-plugin.git
synced 2026-07-22 05:43:30 +00:00
remove console.log
This commit is contained in:
parent
a642ab980f
commit
cae85bb6b7
1 changed files with 2 additions and 6 deletions
|
|
@ -232,15 +232,11 @@ export class FsEditor{
|
|||
|
||||
fs.readFile(path, encoding, (err:Error, data:string) => {
|
||||
if(err){
|
||||
console.error('Error reading file:', err);
|
||||
return;
|
||||
}
|
||||
let rs = callback(path,data);
|
||||
fs.writeFile(path, rs, encoding, (err:Error) => {
|
||||
if (err) {
|
||||
console.error('Error writing file:', err);
|
||||
} else {
|
||||
console.log('File content updated successfully.');
|
||||
}
|
||||
return;
|
||||
});
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue