mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Swift format enforce isEmpty rule (#5843)
* swift format enforce isEmpty rule * revert scheme * use trailing closure
This commit is contained in:
@@ -116,12 +116,12 @@ extension RoomInfoProxyProtocol {
|
||||
|
||||
// Check if the canonical alias matches the homeserver
|
||||
if let canonicalAlias,
|
||||
canonicalAlias.range(of: serverName) != nil {
|
||||
canonicalAlias.contains(serverName) {
|
||||
return canonicalAlias
|
||||
}
|
||||
|
||||
// Otherwise check the alternative aliases and return the first one that matches
|
||||
if let matchingAlternativeAlias = alternativeAliases.first(where: { $0.range(of: serverName) != nil }) {
|
||||
if let matchingAlternativeAlias = alternativeAliases.first(where: { $0.contains(serverName) }) {
|
||||
return matchingAlternativeAlias
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user