mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 21:39:12 +00:00
Enable shorthand_optional_binding SwiftLint rule. (#582)
This commit is contained in:
parent
afc660a1ea
commit
6211f121a0
@ -8,6 +8,7 @@ opt_in_rules:
|
|||||||
- force_unwrapping
|
- force_unwrapping
|
||||||
- private_action
|
- private_action
|
||||||
- explicit_init
|
- explicit_init
|
||||||
|
- shorthand_optional_binding
|
||||||
|
|
||||||
included:
|
included:
|
||||||
- ElementX
|
- ElementX
|
||||||
|
@ -24,7 +24,7 @@ struct UserIndicatorModalView: View {
|
|||||||
var body: some View {
|
var body: some View {
|
||||||
ZStack {
|
ZStack {
|
||||||
VStack(spacing: 12.0) {
|
VStack(spacing: 12.0) {
|
||||||
if let progressFraction = progressFraction {
|
if let progressFraction {
|
||||||
ProgressView(value: progressFraction)
|
ProgressView(value: progressFraction)
|
||||||
} else {
|
} else {
|
||||||
ProgressView()
|
ProgressView()
|
||||||
|
@ -205,7 +205,7 @@ final class LoginCoordinator: CoordinatorProtocol {
|
|||||||
|
|
||||||
let coordinator = ServerSelectionCoordinator(parameters: parameters)
|
let coordinator = ServerSelectionCoordinator(parameters: parameters)
|
||||||
coordinator.callback = { [weak self, weak coordinator] action in
|
coordinator.callback = { [weak self, weak coordinator] action in
|
||||||
guard let self, let coordinator = coordinator else { return }
|
guard let self, let coordinator else { return }
|
||||||
self.serverSelectionCoordinator(coordinator, didCompleteWith: action)
|
self.serverSelectionCoordinator(coordinator, didCompleteWith: action)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ class EmojiProvider: EmojiProviderProtocol {
|
|||||||
|
|
||||||
func getCategories(searchString: String? = nil) async -> [EmojiCategory] {
|
func getCategories(searchString: String? = nil) async -> [EmojiCategory] {
|
||||||
let emojiCategories = await loadIfNeeded()
|
let emojiCategories = await loadIfNeeded()
|
||||||
if let searchString = searchString, searchString.isEmpty == false {
|
if let searchString, searchString.isEmpty == false {
|
||||||
return search(searchString: searchString, emojiCategories: emojiCategories)
|
return search(searchString: searchString, emojiCategories: emojiCategories)
|
||||||
} else {
|
} else {
|
||||||
return emojiCategories
|
return emojiCategories
|
||||||
|
1
changelog.d/pr-579.build
Normal file
1
changelog.d/pr-579.build
Normal file
@ -0,0 +1 @@
|
|||||||
|
Update SwiftLint and SwiftFormat rules.
|
Loading…
x
Reference in New Issue
Block a user