diff --git a/src/converters/libreoffice.ts b/src/converters/libreoffice.ts index 6e1e0b5..bc629ac 100644 --- a/src/converters/libreoffice.ts +++ b/src/converters/libreoffice.ts @@ -139,7 +139,7 @@ export function convert( // eslint-disable-next-line @typescript-eslint/no-unused-vars options?: unknown, ): Promise { - const outputPath = targetPath.split("/").slice(0, -1).join("/").replace("./", ""); + const outputPath = targetPath.split("/").slice(0, -1).join("/").replace("./", "") ?? targetPath; // Build arguments array const args: string[] = [];