From b70c42c71e0da029a385b79439e663e6a02dde26 Mon Sep 17 00:00:00 2001 From: Markus Pettersson Date: Mon, 7 Oct 2024 14:08:41 +0200 Subject: [PATCH] Run `kotlinfmt` --- .../lib/daemon/grpc/ManagementService.kt | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/android/lib/daemon-grpc/src/main/kotlin/net/mullvad/mullvadvpn/lib/daemon/grpc/ManagementService.kt b/android/lib/daemon-grpc/src/main/kotlin/net/mullvad/mullvadvpn/lib/daemon/grpc/ManagementService.kt index 851c92dad443..67719e0a9108 100644 --- a/android/lib/daemon-grpc/src/main/kotlin/net/mullvad/mullvadvpn/lib/daemon/grpc/ManagementService.kt +++ b/android/lib/daemon-grpc/src/main/kotlin/net/mullvad/mullvadvpn/lib/daemon/grpc/ManagementService.kt @@ -510,14 +510,15 @@ class ManagementService( suspend fun setDaitaEnabled(enabled: Boolean): Either = Either.catch { - val daitaSettings = - ManagementInterface.DaitaSettings.newBuilder().setEnabled(enabled) - // TODO: Before Multihop is supported on Android, calling `setDirectOnly` with false - // will cause undefined behaviour. - .setDirectOnly(true) - .build() - grpc.setDaitaSettings(daitaSettings) - } + val daitaSettings = + ManagementInterface.DaitaSettings.newBuilder() + .setEnabled(enabled) + // TODO: Before Multihop is supported on Android, calling `setDirectOnly` + // with false will cause undefined behaviour. + .setDirectOnly(true) + .build() + grpc.setDaitaSettings(daitaSettings) + } .mapLeft(SetDaitaSettingsError::Unknown) .mapEmpty()