File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
ViewRelated/Me/App Settings/App Icons Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -656,7 +656,6 @@ private extension ZendeskUtils {
656656 static func getTags( ) -> [ String ] {
657657
658658 let context = ContextManager . sharedInstance ( ) . mainContext
659- let blogService = BlogService ( managedObjectContext: context)
660659 let allBlogs = ( try ? BlogQuery ( ) . blogs ( in: context) ) ?? [ ]
661660 var tags = [ String] ( )
662661
Original file line number Diff line number Diff line change @@ -38,11 +38,13 @@ final class AppIconListViewModel: AppIconListViewModelType {
3838 let currentLightIcons = allIcons. filter ( { $0. isLegacy == false && $0. isBordered == true } )
3939 . sorted ( by: sortWithPriority ( toItemsWithPrefix: AppIcon . defaultIconName) )
4040 let legacyIcons = {
41- var icons = allIcons. filter ( { $0. isLegacy == true } )
42- if let legacyIconName = AppIcon . defaultLegacyIconName {
43- return icons. sorted ( by: sortWithPriority ( toItemsWithPrefix: legacyIconName) )
41+ let icons = allIcons. filter ( { $0. isLegacy == true } )
42+
43+ guard let legacyIconName = AppIcon . defaultLegacyIconName else {
44+ return icons
4445 }
45- return icons
46+
47+ return icons. sorted ( by: sortWithPriority ( toItemsWithPrefix: legacyIconName) )
4648 } ( )
4749
4850 // Set icons
You can’t perform that action at this time.
0 commit comments