fix(sidecar): explicit Unit return in pressKey and waitForIdle withReconnect lambdas

This commit is contained in:
pj committed 2026-04-25 15:52:53 +07:00
1 parent 665831ffd7
commit 8c6c8c85df
1 file changed
+2
@@ -568,6 +568,7 @@ class IosDriverBackend(private val udid: String) : DriverBackend {
StubDriverBackend.KEY_MAP[key]?.let { keyCode ->
keyCodeToMaestro(keyCode)?.let { driver.pressKey(it) }
}
Unit
}
override fun screenshot(): Triple<ByteArray, Int, Int> = withReconnect {
@@ -586,6 +587,7 @@ class IosDriverBackend(private val udid: String) : DriverBackend {
override fun waitForIdle(durationMillis: Long) = withReconnect {
driver.waitForAppToSettle(null, null, durationMillis.toInt())
Unit
}
override fun healthy() = runCatching { driver.contentDescriptor(false); true }.getOrElse { false }