Skip to content

Commit e3257d1

Browse files
committed
fix(ZimService): cleanup unused variable
1 parent 098979d commit e3257d1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

admin/app/services/zim_service.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export class ZimService {
168168
allowedMimeTypes: ZIM_MIME_TYPES,
169169
timeout: 30000,
170170
forceNew: true,
171-
onComplete: (url, filepath) => this._downloadRemoteSuccessCallback([url], filepath),
171+
onComplete: (url) => this._downloadRemoteSuccessCallback([url]),
172172
})
173173

174174
return filename
@@ -216,15 +216,15 @@ export class ZimService {
216216
allowedMimeTypes: ZIM_MIME_TYPES,
217217
timeout: 30000,
218218
forceNew: true,
219-
onComplete: (url, filepath) =>
220-
this._downloadRemoteSuccessCallback([url], filepath, isLastDownload),
219+
onComplete: (url) =>
220+
this._downloadRemoteSuccessCallback([url], isLastDownload),
221221
})
222222
}
223223

224224
return downloadFilenames.length > 0 ? downloadFilenames : null
225225
}
226226

227-
async _downloadRemoteSuccessCallback(urls: string[], filepath: string, restart = true) {
227+
async _downloadRemoteSuccessCallback(urls: string[], restart = true) {
228228
// Restart KIWIX container to pick up new ZIM file
229229
if (restart) {
230230
await this.dockerService

0 commit comments

Comments
 (0)