diff --git a/fetch2/src/main/java/com/tonyodev/fetch2/downloader/ParallelFileDownloaderImpl.kt b/fetch2/src/main/java/com/tonyodev/fetch2/downloader/ParallelFileDownloaderImpl.kt index b253b1a4..12671148 100644 --- a/fetch2/src/main/java/com/tonyodev/fetch2/downloader/ParallelFileDownloaderImpl.kt +++ b/fetch2/src/main/java/com/tonyodev/fetch2/downloader/ParallelFileDownloaderImpl.kt @@ -421,7 +421,7 @@ class ParallelFileDownloaderImpl(private val initialDownload: Download, } for (fileSlice in fileSlicesDownloadsList) { if (!interrupted && !terminated) { - executorService?.execute({ + executorService?.execute { val downloadRequest = getRequestForDownload(downloadInfo, fileSlice.startBytes + fileSlice.downloaded) var downloadResponse: Downloader.Response? = null try { @@ -494,7 +494,7 @@ class ParallelFileDownloaderImpl(private val initialDownload: Download, } incrementActionCompletedCount() } - }) + } } } }