diff --git a/Frameworks/RSDatabase/RSDatabase/DatabaseLookupTable.swift b/Frameworks/RSDatabase/RSDatabase/DatabaseLookupTable.swift index 1aec8f68a..575d27993 100644 --- a/Frameworks/RSDatabase/RSDatabase/DatabaseLookupTable.swift +++ b/Frameworks/RSDatabase/RSDatabase/DatabaseLookupTable.swift @@ -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, _ 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) diff --git a/ToDo.ooutline b/ToDo.ooutline new file mode 100644 index 000000000..fbef34001 Binary files /dev/null and b/ToDo.ooutline differ