Fix duplicate on iOS 14

Wrong braces in 4cb18965c9.
This commit is contained in:
Davide De Rosa 2022-05-04 09:12:06 +02:00
parent 9e9cd018eb
commit b68fb21652
1 changed files with 2 additions and 2 deletions

View File

@ -263,13 +263,13 @@ extension ProfileManager {
// profile that has not been persisted yet // profile that has not been persisted yet
// //
if setAsCurrent { if setAsCurrent {
if #available(iOS 15, *) {
pendingProfiles[copy.id] = copy pendingProfiles[copy.id] = copy
if #available(iOS 15, *) {
currentProfileId = copy.id currentProfileId = copy.id
pendingProfiles.removeValue(forKey: copy.id)
} else { } else {
setCurrentProfile(copy) setCurrentProfile(copy)
} }
pendingProfiles.removeValue(forKey: copy.id)
} else { } else {
strategy.saveProfile(copy) strategy.saveProfile(copy)
} }