Skip to content

Commit 90b40d0

Browse files
authored
Update index.tsx
1 parent bb8dd38 commit 90b40d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,12 @@ async function writePDFAsync(base64: string) {
152152
export async function removeFilesAsync(): Promise<void> {
153153
const { exists: htmlPathExist } = await getInfoAsync(htmlPath)
154154
if (htmlPathExist) {
155-
await deleteAsync(htmlPath)
155+
await deleteAsync(htmlPath, { idempotent: true })
156156
}
157157

158158
const { exists: pdfPathExist } = await getInfoAsync(pdfPath)
159159
if (pdfPathExist) {
160-
await deleteAsync(pdfPath)
160+
await deleteAsync(pdfPath, { idempotent: true })
161161
}
162162
}
163163

0 commit comments

Comments
 (0)