[Sandbox Configuration] Do not delete path on fail

Do not delete path from storage when save fails.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
swiftingly
Christopher Snowhill 2022-06-21 16:14:45 -07:00
parent bc23ed6c24
commit 51f8536943
1 changed files with 0 additions and 1 deletions

View File

@ -70,7 +70,6 @@
[pc.viewContext save:&err];
if(err) {
ALog(@"Error saving bookmark: %@", [err localizedDescription]);
[pc.viewContext deleteObject:token];
} else {
[self addObject:@{ @"path": [url path], @"valid": NSLocalizedPrefString(@"ValidYes") }];
}