We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81a0671 commit 27ebd2eCopy full SHA for 27ebd2e
packages/service/worker/readFile/parseOffice.ts
@@ -46,11 +46,9 @@ const parsePowerPoint = async ({
46
// Returning an array of all the xml contents read using fs.readFileSync
47
const xmlContentArray = await Promise.all(
48
files.map((file) => {
49
- try {
50
- return fs.promises.readFile(`${decompressPath}/${file.path}`, encoding);
51
- } catch (err) {
+ return fs.promises.readFile(`${decompressPath}/${file.path}`, encoding).catch(() => {
52
return fs.promises.readFile(`${decompressPath}/${file.path}`, 'utf-8');
53
- }
+ });
54
})
55
);
56
0 commit comments