Skip to content

Commit

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

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

Expand Down

0 comments on commit b0523e7

Please sign in to comment.