Enable shorthand_optional_binding SwiftLint rule. (#582)

This commit is contained in:
Doug
2023-02-15 09:34:48 +00:00
committed by GitHub
parent afc660a1ea
commit 6211f121a0
5 changed files with 5 additions and 3 deletions
@@ -40,7 +40,7 @@ class EmojiProvider: EmojiProviderProtocol {
func getCategories(searchString: String? = nil) async -> [EmojiCategory] {
let emojiCategories = await loadIfNeeded()
if let searchString = searchString, searchString.isEmpty == false {
if let searchString, searchString.isEmpty == false {
return search(searchString: searchString, emojiCategories: emojiCategories)
} else {
return emojiCategories