From 7abe36376d5263cc79b9a56e11130d7e4603cdae Mon Sep 17 00:00:00 2001 From: Tonyo Francis Date: Sun, 17 Jun 2018 18:38:04 -0400 Subject: [PATCH] lint fixes --- .../tonyodev/fetch2/downloader/ParallelFileDownloaderImpl.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() } - }) + } } } }