Fix project warnings (#791)

- Swift 5.8 warnings
- Run SwiftFormat 0.51.5
- Fix SwiftLint blanket_disable_command warnings. (Assets.swift will be fixed by SwiftGen).
This commit is contained in:
Doug
2023-04-12 10:33:38 +01:00
committed by GitHub
parent f02a5c7ac0
commit 30a3efcf51
9 changed files with 15 additions and 6 deletions
@@ -83,3 +83,4 @@ extension UntranslatedL10n {
private final class BundleToken {}
// swiftlint:enable all
+1
View File
@@ -721,3 +721,4 @@ extension L10n {
private final class BundleToken {}
// swiftlint:enable all
@@ -1,4 +1,4 @@
// Generated using Sourcery 2.0.1 — https://github.com/krzysztofzablocki/Sourcery
// Generated using Sourcery 2.0.2 — https://github.com/krzysztofzablocki/Sourcery
// DO NOT EDIT
// swiftlint:disable all
@@ -72,7 +72,7 @@ struct LoadableImage<TransformerView: View, PlaceholderView: View>: View {
guard image == nil, let mediaSource else { return }
if case let .success(image) = await imageProvider?.loadImageFromSource(mediaSource, size: size) {
self.cachedImage = image
cachedImage = image
}
}
@@ -50,8 +50,9 @@ class EmojiPickerScreenViewModel: EmojiPickerScreenViewModelType, EmojiPickerScr
private func loadEmojis() {
Task(priority: .userInitiated) { [weak self] in
let categories = await emojiProvider.getCategories(searchString: nil)
self?.state.categories = convert(emojiCategories: categories)
guard let self else { return }
let categories = await self.emojiProvider.getCategories(searchString: nil)
self.state.categories = convert(emojiCategories: categories)
}
}