Fixing coding style issues

This commit is contained in:
Maxime NATUREL 2022-06-15 16:04:09 +02:00
parent 082b39e651
commit 9047d9d62c
3 changed files with 2 additions and 11 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2022 New Vector Ltd
* Copyright (c) 2022 The Matrix.org Foundation C.I.C.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -20,13 +20,6 @@ package org.matrix.android.sdk.api.session.room.location
* Represents the result of an update of live location share like a start or a stop.
*/
sealed interface UpdateLiveLocationShareResult {
/**
* @param beaconEventId event id of the updated state event
*/
data class Success(val beaconEventId: String) : UpdateLiveLocationShareResult
/**
* @param error thrown during the update
*/
data class Failure(val error: Throwable) : UpdateLiveLocationShareResult
}

View File

@ -18,9 +18,7 @@ package org.matrix.android.sdk.internal.session.room.location
import io.mockk.coEvery
import io.mockk.coVerify
import io.mockk.just
import io.mockk.mockk
import io.mockk.runs
import io.mockk.unmockkAll
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.test.runTest

View File

@ -93,7 +93,7 @@ class LocationLiveMapViewFragment @Inject constructor() : VectorBaseFragment<Fra
private fun observeViewEvents() {
viewModel.observeViewEvents { viewEvent ->
when(viewEvent) {
when (viewEvent) {
is LocationLiveMapViewEvents.Error -> displayErrorDialog(viewEvent.error)
}
}