Swift format enforce isEmpty rule (#5843)

* swift format enforce isEmpty rule

* revert scheme

* use trailing closure
This commit is contained in:
Mauro
2026-07-06 15:39:16 +02:00
committed by GitHub
parent d2ef1e71f9
commit 0a77ba6c90
27 changed files with 60 additions and 60 deletions
+3 -3
View File
@@ -26,7 +26,7 @@ enum Application {
extension XCUIApplication {
var homeserver: String? {
guard let homeserver = ProcessInfo.processInfo.environment["INTEGRATION_TESTS_HOST"],
homeserver.count > 0 else {
!homeserver.isEmpty else {
return nil
}
@@ -35,7 +35,7 @@ extension XCUIApplication {
var username: String {
guard let username = ProcessInfo.processInfo.environment["INTEGRATION_TESTS_USERNAME"],
username.count > 0 else {
!username.isEmpty else {
return "default"
}
@@ -44,7 +44,7 @@ extension XCUIApplication {
var password: String {
guard let password = ProcessInfo.processInfo.environment["INTEGRATION_TESTS_PASSWORD"],
password.count > 0 else {
!password.isEmpty else {
return "default"
}
+1 -1
View File
@@ -64,7 +64,7 @@ extension XCUIApplication {
throw IntegrationTestsError.webAuthenticationSessionFailure
}
if alerts.count > 0 {
if !alerts.isEmpty {
alerts.firstMatch.buttons["OK"].firstMatch.tap()
}
}