mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-04-04 07:46:16 +02:00
fix(ZimService): cleanup unused variable
This commit is contained in:
parent
098979dd02
commit
babec6d79c
|
|
@ -168,7 +168,7 @@ export class ZimService {
|
||||||
allowedMimeTypes: ZIM_MIME_TYPES,
|
allowedMimeTypes: ZIM_MIME_TYPES,
|
||||||
timeout: 30000,
|
timeout: 30000,
|
||||||
forceNew: true,
|
forceNew: true,
|
||||||
onComplete: (url, filepath) => this._downloadRemoteSuccessCallback([url], filepath),
|
onComplete: (url) => this._downloadRemoteSuccessCallback([url]),
|
||||||
})
|
})
|
||||||
|
|
||||||
return filename
|
return filename
|
||||||
|
|
@ -216,15 +216,15 @@ export class ZimService {
|
||||||
allowedMimeTypes: ZIM_MIME_TYPES,
|
allowedMimeTypes: ZIM_MIME_TYPES,
|
||||||
timeout: 30000,
|
timeout: 30000,
|
||||||
forceNew: true,
|
forceNew: true,
|
||||||
onComplete: (url, filepath) =>
|
onComplete: (url) =>
|
||||||
this._downloadRemoteSuccessCallback([url], filepath, isLastDownload),
|
this._downloadRemoteSuccessCallback([url], isLastDownload),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
return downloadFilenames.length > 0 ? downloadFilenames : null
|
return downloadFilenames.length > 0 ? downloadFilenames : null
|
||||||
}
|
}
|
||||||
|
|
||||||
async _downloadRemoteSuccessCallback(urls: string[], filepath: string, restart = true) {
|
async _downloadRemoteSuccessCallback(urls: string[], restart = true) {
|
||||||
// Restart KIWIX container to pick up new ZIM file
|
// Restart KIWIX container to pick up new ZIM file
|
||||||
if (restart) {
|
if (restart) {
|
||||||
await this.dockerService
|
await this.dockerService
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user