Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
FloEdelmann committed Feb 22, 2024
1 parent f166c27 commit cd87ceb
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class DownloadWorker(
val isPriorityDownload = inputData.getBoolean(ARG_IS_USER_INITIATED, false)
downloader.download(bbox, isPriorityDownload)
Result.success()
} catch (e: Exception) {
} catch (e: Exception) {
Result.failure()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Downloader(
private val mapTilesDownloader: MapTilesDownloader,
private val downloadedTilesController: DownloadedTilesController,
private val mutex: Mutex
): DownloadProgressSource {
) : DownloadProgressSource {

private val listeners = Listeners<DownloadProgressSource.Listener>()

Expand Down Expand Up @@ -74,7 +74,6 @@ class Downloader(

val seconds = (nowAsEpochMilliseconds() - time) / 1000.0
Log.i(TAG, "Finished download ($sqkm km², bbox: $bboxString) in ${seconds.format(1)}s")

} catch (e: CancellationException) {
hasError = true
Log.i(TAG, "Download cancelled")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package de.westnordost.streetcomplete.data.osm.edits.upload.changesets

import android.content.Context
import androidx.work.CoroutineWorker
import androidx.work.Worker
import androidx.work.WorkerParameters
import de.westnordost.streetcomplete.data.download.ConnectionException
import de.westnordost.streetcomplete.data.user.AuthorizationException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import androidx.work.WorkManager
import androidx.work.WorkerParameters
import de.westnordost.streetcomplete.ApplicationConstants
import de.westnordost.streetcomplete.data.sync.createSyncNotification
import de.westnordost.streetcomplete.util.logs.Log

/** Collects and uploads all user changes: notes left, comments left on existing
* notes and quests answered */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package de.westnordost.streetcomplete.data.upload

import de.westnordost.streetcomplete.ApplicationConstants
import de.westnordost.streetcomplete.data.download.Downloader
import de.westnordost.streetcomplete.data.download.tiles.DownloadedTilesController
import de.westnordost.streetcomplete.data.download.tiles.enclosingTilePos
import de.westnordost.streetcomplete.data.osm.edits.upload.ElementEditsUploader
Expand All @@ -24,7 +23,7 @@ class Uploader(
private val userLoginStatusSource: UserLoginStatusSource,
private val versionIsBannedChecker: VersionIsBannedChecker,
private val mutex: Mutex
): UploadProgressSource {
) : UploadProgressSource {

private val listeners = Listeners<UploadProgressSource.Listener>()

Expand Down Expand Up @@ -72,7 +71,6 @@ class Uploader(
noteEditsUploader.upload()
}
Log.i(TAG, "Finished upload")

} catch (e: CancellationException) {
Log.i(TAG, "Upload cancelled")
} catch (e: Exception) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import de.westnordost.streetcomplete.Prefs
import de.westnordost.streetcomplete.R
import de.westnordost.streetcomplete.data.UnsyncedChangesCountSource
import de.westnordost.streetcomplete.data.download.ConnectionException
import de.westnordost.streetcomplete.data.download.DownloadController
import de.westnordost.streetcomplete.data.download.DownloadProgressSource
import de.westnordost.streetcomplete.data.messages.Message
import de.westnordost.streetcomplete.data.osm.edits.ElementEdit
Expand Down

0 comments on commit cd87ceb

Please sign in to comment.