Skip to content

Commit 71cf5bd

Browse files
committed
Convert a var that was not mutated to a let
1 parent 81a224b commit 71cf5bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WordPress/Classes/ViewRelated/Me/App Settings/App Icons/AppIconListViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ 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 })
41+
let icons = allIcons.filter({ $0.isLegacy == true })
4242
if let legacyIconName = AppIcon.defaultLegacyIconName {
4343
return icons.sorted(by: sortWithPriority(toItemsWithPrefix: legacyIconName))
4444
}

0 commit comments

Comments
 (0)