From 5b8177fba4602ee68425439cd289e68da26b6bed Mon Sep 17 00:00:00 2001 From: Paul Hitt Date: Sun, 20 Sep 2026 16:58:27 -0400 Subject: [PATCH] Wrap the erase dialog's handlers the way ktlint asks Seven findings, all on lines the commit before this one added: two semicolon-joined statements in onClick lambdas and a chained call that wanted a newline. No behaviour. Co-Authored-By: Claude Opus 5 --- .../kotlin/io/flamenet/messenger/app/ChatScreens.kt | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/io/flamenet/messenger/app/ChatScreens.kt b/app/src/main/kotlin/io/flamenet/messenger/app/ChatScreens.kt index 9e57172..fc9c6b6 100644 --- a/app/src/main/kotlin/io/flamenet/messenger/app/ChatScreens.kt +++ b/app/src/main/kotlin/io/flamenet/messenger/app/ChatScreens.kt @@ -3624,7 +3624,10 @@ fun RegisteredDevicesSection( // somebody else is carrying, the first is the one that // matters. androidx.compose.material3.TextButton( - onClick = { erasing = device.deviceId; passphrase = "" }, + onClick = { + erasing = device.deviceId + passphrase = "" + }, modifier = Modifier.testTag("erase-${device.deviceId}"), ) { Text("Erase", color = MaterialTheme.colorScheme.error) } androidx.compose.material3.TextButton( @@ -3659,7 +3662,8 @@ fun RegisteredDevicesSection( label = { Text("Your passphrase") }, singleLine = true, visualTransformation = - androidx.compose.ui.text.input.PasswordVisualTransformation(), + androidx.compose.ui.text.input + .PasswordVisualTransformation(), modifier = Modifier.fillMaxWidth().testTag("erase-passphrase"), ) } @@ -3680,7 +3684,10 @@ fun RegisteredDevicesSection( KitChip( text = "Cancel", selected = false, - onClick = { erasing = null; passphrase = "" }, + onClick = { + erasing = null + passphrase = "" + }, tag = "erase-cancel", ) },