mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-07-07 10:35:09 +00:00
Fixed unhandled promise rejection error
This commit is contained in:
@@ -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 */ }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user