Skip to content

Commit 56ae29d

Browse files
committed
Kotlin format
1 parent 4a8e8a8 commit 56ae29d

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/communication/CustomListAction.kt

+5-7
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ package net.mullvad.mullvadvpn.compose.communication
33
import android.os.Parcelable
44
import kotlinx.parcelize.Parcelize
55

6-
sealed interface
7-
CustomListAction : Parcelable {
6+
sealed interface CustomListAction : Parcelable {
87

98
@Parcelize
10-
data class Rename(val customListId: String, val name: String, val newName: String) : CustomListAction {
9+
data class Rename(val customListId: String, val name: String, val newName: String) :
10+
CustomListAction {
1111
fun not() = this.copy(name = newName, newName = name)
1212
}
1313

@@ -17,10 +17,8 @@ CustomListAction : Parcelable {
1717
}
1818

1919
@Parcelize
20-
data class Create(
21-
val name: String = "",
22-
val locations: List<String> = emptyList()
23-
) : CustomListAction, Parcelable {
20+
data class Create(val name: String = "", val locations: List<String> = emptyList()) :
21+
CustomListAction, Parcelable {
2422
fun not(customListId: String) = Delete(customListId)
2523
}
2624

android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/dialog/CreateCustomListDialog.kt

+1-3
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ fun CreateCustomList(
5858
locationCode: String = ""
5959
) {
6060
val vm: CreateCustomListDialogViewModel =
61-
koinViewModel(
62-
parameters = { parametersOf(locationCode) }
63-
)
61+
koinViewModel(parameters = { parametersOf(locationCode) })
6462
LaunchedEffect(key1 = Unit) {
6563
vm.uiSideEffect.collect { sideEffect ->
6664
when (sideEffect) {

android/app/src/main/kotlin/net/mullvad/mullvadvpn/repository/CustomListsRepository.kt

-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ import net.mullvad.mullvadvpn.model.CustomList
1111
import net.mullvad.mullvadvpn.model.CustomListsError
1212
import net.mullvad.mullvadvpn.model.GeographicLocationConstraint
1313
import net.mullvad.mullvadvpn.model.UpdateCustomListResult
14-
import net.mullvad.mullvadvpn.relaylist.RelayItem
1514
import net.mullvad.mullvadvpn.relaylist.getGeographicLocationConstraintByCode
16-
import net.mullvad.mullvadvpn.relaylist.toGeographicLocationConstraints
1715
import net.mullvad.mullvadvpn.ui.serviceconnection.RelayListListener
1816
import net.mullvad.mullvadvpn.util.firstOrNullWithTimeout
1917

0 commit comments

Comments
 (0)