mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-31 19:24:55 +01:00
Start ToDo.ooutline. (OmniOutliner outline.)
This commit is contained in:
parent
177667d639
commit
e7897e21d9
@ -32,7 +32,7 @@ public final class DatabaseLookupTable {
|
||||
|
||||
public func attachRelationships(to objects: [DatabaseObject], database: FMDatabase) {
|
||||
|
||||
guard !objects.isEmpty, let lookupTable = fetchLookupTable(objects.databaseIDs(), database) else {
|
||||
guard let lookupTable = fetchLookupTable(objects.databaseIDs(), database) else {
|
||||
return;
|
||||
}
|
||||
attachRelationshipsUsingLookupTable(to: objects, lookupTable: lookupTable, database: database)
|
||||
@ -80,7 +80,7 @@ private extension DatabaseLookupTable {
|
||||
func fetchLookupTable(_ foreignIDs: Set<String>, _ database: FMDatabase) -> LookupTable? {
|
||||
|
||||
let foreignIDsToLookup = foreignIDs.subtracting(foreignIDsWithNoRelationship)
|
||||
guard !foreignIDsToLookup.isEmpty, let lookupValues = fetchLookupValues(foreignIDsToLookup, database) else {
|
||||
guard let lookupValues = fetchLookupValues(foreignIDsToLookup, database) else {
|
||||
return nil
|
||||
}
|
||||
updateCache(lookupValues, foreignIDsToLookup)
|
||||
|
BIN
ToDo.ooutline
Normal file
BIN
ToDo.ooutline
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user