Use fs.unlinkSync
instead of fs.unlink
when removing files in the font tests
This commit is contained in:
parent
8ce24744f2
commit
90750d624b
@ -69,7 +69,7 @@ exports.translateFont = function translateFont(content, registerOnCancel,
|
||||
|
||||
fs.writeFileSync(fontPath, buffer);
|
||||
runTtx(ttxResourcesHome, fontPath, registerOnCancel, function (err) {
|
||||
fs.unlink(fontPath);
|
||||
fs.unlinkSync(fontPath);
|
||||
if (err) {
|
||||
console.error(err);
|
||||
callback(err);
|
||||
@ -77,7 +77,7 @@ exports.translateFont = function translateFont(content, registerOnCancel,
|
||||
callback('Output was not generated');
|
||||
} else {
|
||||
callback(null, fs.readFileSync(resultPath));
|
||||
fs.unlink(resultPath);
|
||||
fs.unlinkSync(resultPath);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user