Skip to content

Commit

Permalink
chore: update lint
Browse files Browse the repository at this point in the history
  • Loading branch information
aanorbel committed Aug 20, 2024
1 parent bffbe42 commit 523ce36
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class Dependencies(
private val buildDataStore: () -> DataStore<Preferences>,
private val isBatteryCharging: () -> Boolean,
private val launchUrl: (String) -> Unit,
) {
) {
// Common

private val backgroundDispatcher = Dispatchers.IO
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fun AboutScreen(onEvent: (AboutViewModel.Event) -> Unit) {
item {
Column(
modifier = Modifier.fillMaxWidth().padding(16.dp),
verticalArrangement = Arrangement.Center
verticalArrangement = Arrangement.Center,
) {
Text(stringResource(Res.string.Settings_About_Content_Paragraph))
Spacer(modifier = Modifier.height(16.dp))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.filterIsInstance
import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutines.flow.onEach
import org.ooni.probe.data.models.ResultModel

class AboutViewModel(
onBack: () -> Unit,
Expand All @@ -24,10 +23,6 @@ class AboutViewModel(
events.tryEmit(event)
}

data class State(
val result: ResultModel?,
)

sealed interface Event {
data object BackClicked : Event

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fun setupDependencies(
// TODO: isBatteryCharging
isBatteryCharging = { true },
launchUrl = ::launchUrl,
)
)

private val platformInfo
get() =
Expand Down

0 comments on commit 523ce36

Please sign in to comment.