mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
Remove unused parameter
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
95e9be6ce9
commit
909c730bde
1 changed files with 4 additions and 6 deletions
|
@ -271,8 +271,6 @@ class FileDownloadWorker(
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
val fileName = currentDownload?.file?.fileName
|
|
||||||
|
|
||||||
setWorkerState(user)
|
setWorkerState(user)
|
||||||
Log_OC.e(TAG, "FilesDownloadWorker downloading: $downloadKey")
|
Log_OC.e(TAG, "FilesDownloadWorker downloading: $downloadKey")
|
||||||
|
|
||||||
|
@ -299,7 +297,7 @@ class FileDownloadWorker(
|
||||||
Log_OC.e(TAG, "Error downloading", e)
|
Log_OC.e(TAG, "Error downloading", e)
|
||||||
downloadResult = RemoteOperationResult<Any?>(e)
|
downloadResult = RemoteOperationResult<Any?>(e)
|
||||||
} finally {
|
} finally {
|
||||||
cleanupDownloadProcess(downloadResult, fileName)
|
cleanupDownloadProcess(downloadResult)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -337,9 +335,9 @@ class FileDownloadWorker(
|
||||||
return file
|
return file
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun cleanupDownloadProcess(result: RemoteOperationResult<*>?, fileName: String?) {
|
private fun cleanupDownloadProcess(result: RemoteOperationResult<*>?) {
|
||||||
result?.let {
|
result?.let {
|
||||||
checkDownloadError(it, fileName)
|
checkDownloadError(it)
|
||||||
}
|
}
|
||||||
|
|
||||||
val removeResult = pendingDownloads.removePayload(
|
val removeResult = pendingDownloads.removePayload(
|
||||||
|
@ -362,7 +360,7 @@ class FileDownloadWorker(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun checkDownloadError(result: RemoteOperationResult<*>, fileName: String?) {
|
private fun checkDownloadError(result: RemoteOperationResult<*>) {
|
||||||
if (result.isSuccess || downloadError != null) {
|
if (result.isSuccess || downloadError != null) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue