Delete unparsable .ovpn
This commit is contained in:
parent
9f951fc68b
commit
0d23187eef
|
@ -90,7 +90,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UISplitViewControllerDele
|
||||||
fatalError("No window.rootViewController?")
|
fatalError("No window.rootViewController?")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let fm = FileManager.default
|
||||||
guard let parsedFile = ParsedFile.from(url, withErrorAlertIn: root) else {
|
guard let parsedFile = ParsedFile.from(url, withErrorAlertIn: root) else {
|
||||||
|
try? fm.removeItem(at: url)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue