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