Skip to content

Commit

Permalink
Fix multiget return value
Browse files Browse the repository at this point in the history
  • Loading branch information
rbruels committed Jul 2, 2020
1 parent 063ab74 commit 9701ba7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions iCloudStorage.m
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,10 @@ - (void) ubiquitousStoreUpdated:(NSNotification*)notification {
NSMutableArray *result = [NSMutableArray arrayWithCapacity:[keys count]];
for (NSString* key in keys) {
NSObject* object = [iCloudStorage getObjectForKey:key];
if (object != nil) {
[result addObject:object];
if (object == nil) {
object = [NSNull null];
}
[result addObject:@[key, object]];
}

resolve(result);
Expand Down

0 comments on commit 9701ba7

Please sign in to comment.