Skip to content

Commit

Permalink
fix to use extension method
Browse files Browse the repository at this point in the history
  • Loading branch information
p-x9 committed Oct 8, 2022
1 parent b0523e7 commit f78a0cb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Sources/AppContainer/AppContainer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -437,9 +437,7 @@ extension AppContainer {

guard let keys = CFPreferencesCopyKeyList(applicationID, kCFPreferencesCurrentUser, kCFPreferencesCurrentHost),
let dictionary = CFPreferencesCopyMultiple(keys, applicationID, kCFPreferencesCurrentUser, kCFPreferencesCurrentHost) as? Dictionary<String, Any> else {
if fileManager.fileExists(atPath: plistUrl.path) {
try fileManager.removeItem(at: plistUrl)
}
try fileManager.removeItemIfExisted(at: plistUrl)
return
}

Expand Down

0 comments on commit f78a0cb

Please sign in to comment.