mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-21 15:48:06 +02:00
Use fs.unlinkSync
instead of fs.unlink
when removing files in the font tests
This commit is contained in:
parent
8ce24744f2
commit
90750d624b
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue