diff --git a/src/electron/ipc/download/ChartDownload.ts b/src/electron/ipc/download/ChartDownload.ts index c938cfd..3f2ef48 100644 --- a/src/electron/ipc/download/ChartDownload.ts +++ b/src/electron/ipc/download/ChartDownload.ts @@ -88,9 +88,7 @@ export class ChartDownload { const cancelFn = this.cancelFn this.cancelFn = undefined cancelFn() - try { - rimraf(this.tempPath) // Delete temp folder - } catch (e) { /** Do nothing */ } + rimraf(this.tempPath).catch(() => { /** Do nothing */ }) // Delete temp folder } }