diff --git a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/ContractsExtensions.kt b/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/ContractsExtensions.kt index 1f134b800..a5e3ac371 100644 --- a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/ContractsExtensions.kt +++ b/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/ContractsExtensions.kt @@ -21,7 +21,7 @@ private fun Selector.isEmpty(): Boolean { !hasEnabled() && !hasFocused() && !hasPkg() - ) + ) } fun Selector.toUiSelector(): UiSelector { @@ -95,7 +95,8 @@ fun Selector.toBySelector(): BySelector { var matchedFocused = false var matchedPkg = false - var bySelector = if (hasText()) { + var bySelector = + if (hasText()) { matchedText = true By.text(text) } else if (hasTextStartsWith()) {