Fixed unhandled promise rejection error

This commit is contained in:
Geomitron
2020-05-30 12:37:10 -04:00
parent 7054e7af58
commit e66a34d45d

View File

@@ -88,9 +88,7 @@ export class ChartDownload {
const cancelFn = this.cancelFn const cancelFn = this.cancelFn
this.cancelFn = undefined this.cancelFn = undefined
cancelFn() cancelFn()
try { rimraf(this.tempPath).catch(() => { /** Do nothing */ }) // Delete temp folder
rimraf(this.tempPath) // Delete temp folder
} catch (e) { /** Do nothing */ }
} }
} }