Add some missing nullability annotations

pull/1/head
Michael Kirk 7 years ago
parent b3d3c27f39
commit 9bca1c8e52

@ -110,8 +110,8 @@ NSString *const OWSPrimaryStorageKeyPrekeyCurrentSignedPrekeyId = @"currentSigne
__block SignedPreKeyRecord *_Nullable currentRecord; __block SignedPreKeyRecord *_Nullable currentRecord;
[self.dbReadConnection readWithBlock:^(YapDatabaseReadTransaction *_Nonnull transaction) { [self.dbReadConnection readWithBlock:^(YapDatabaseReadTransaction *_Nonnull transaction) {
NSNumber *preKeyId = [transaction objectForKey:OWSPrimaryStorageKeyPrekeyCurrentSignedPrekeyId NSNumber *_Nullable preKeyId = [transaction objectForKey:OWSPrimaryStorageKeyPrekeyCurrentSignedPrekeyId
inCollection:OWSPrimaryStorageSignedPreKeyMetadataCollection]; inCollection:OWSPrimaryStorageSignedPreKeyMetadataCollection];
if (preKeyId == nil) { if (preKeyId == nil) {
return; return;
@ -128,8 +128,8 @@ NSString *const OWSPrimaryStorageKeyPrekeyCurrentSignedPrekeyId = @"currentSigne
- (int)prekeyUpdateFailureCount - (int)prekeyUpdateFailureCount
{ {
NSNumber *value = [self.dbReadConnection objectForKey:OWSPrimaryStorageKeyPrekeyUpdateFailureCount NSNumber *_Nullable value = [self.dbReadConnection objectForKey:OWSPrimaryStorageKeyPrekeyUpdateFailureCount
inCollection:OWSPrimaryStorageSignedPreKeyMetadataCollection]; inCollection:OWSPrimaryStorageSignedPreKeyMetadataCollection];
// Will default to zero. // Will default to zero.
return [value intValue]; return [value intValue];
} }

Loading…
Cancel
Save