mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 08:15:24 +00:00
Swift format enforce isEmpty rule (#5843)
* swift format enforce isEmpty rule * revert scheme * use trailing closure
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ extension XCUIApplication {
|
||||
throw IntegrationTestsError.webAuthenticationSessionFailure
|
||||
}
|
||||
|
||||
if alerts.count > 0 {
|
||||
if !alerts.isEmpty {
|
||||
alerts.firstMatch.buttons["OK"].firstMatch.tap()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user