Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
albin-mullvad committed Jul 1, 2024
1 parent 9b6ef91 commit d5403ad
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.tooling.preview.Preview
import net.mullvad.mullvadvpn.R
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import androidx.compose.ui.tooling.preview.PreviewParameter
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import androidx.lifecycle.compose.dropUnlessResumed
import co.touchlab.kermit.Logger
import com.ramcosta.composedestinations.annotation.Destination
import com.ramcosta.composedestinations.annotation.RootGraph
import com.ramcosta.composedestinations.generated.destinations.LoginDestination
Expand Down Expand Up @@ -162,7 +161,7 @@ fun DeviceList(
onTryAgainClicked = viewModel::fetchDevices,
navigateToRemoveDeviceConfirmationDialog =
dropUnlessResumed<Device> {
//Logger.i("DeviceList: remove device: $it")
// Logger.i("DeviceList: remove device: $it")
Log.d("mullvad", "DeviceList: remove device: $it")
navigator.navigate(RemoveDeviceConfirmationDialogDestination(it))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ class VersionNotificationUseCase(
operator fun invoke() =
appVersionInfoRepository
.versionInfo()
.map { versionInfo ->
listOfNotNull(
unsupportedVersionNotification(versionInfo)
)
}
.map { versionInfo -> listOfNotNull(unsupportedVersionNotification(versionInfo)) }
.distinctUntilChanged()

private fun unsupportedVersionNotification(versionInfo: VersionInfo): InAppNotification? {
Expand Down

0 comments on commit d5403ad

Please sign in to comment.