From 9bca1c8e5241eb8e4f55d5f5106ae19cf2a36e6b Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Thu, 13 Sep 2018 15:27:14 -0500 Subject: [PATCH] Add some missing nullability annotations --- .../AxolotlStore/OWSPrimaryStorage+SignedPreKeyStore.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SignalServiceKit/src/Storage/AxolotlStore/OWSPrimaryStorage+SignedPreKeyStore.m b/SignalServiceKit/src/Storage/AxolotlStore/OWSPrimaryStorage+SignedPreKeyStore.m index 8d608b483..48eef0a75 100644 --- a/SignalServiceKit/src/Storage/AxolotlStore/OWSPrimaryStorage+SignedPreKeyStore.m +++ b/SignalServiceKit/src/Storage/AxolotlStore/OWSPrimaryStorage+SignedPreKeyStore.m @@ -110,8 +110,8 @@ NSString *const OWSPrimaryStorageKeyPrekeyCurrentSignedPrekeyId = @"currentSigne __block SignedPreKeyRecord *_Nullable currentRecord; [self.dbReadConnection readWithBlock:^(YapDatabaseReadTransaction *_Nonnull transaction) { - NSNumber *preKeyId = [transaction objectForKey:OWSPrimaryStorageKeyPrekeyCurrentSignedPrekeyId - inCollection:OWSPrimaryStorageSignedPreKeyMetadataCollection]; + NSNumber *_Nullable preKeyId = [transaction objectForKey:OWSPrimaryStorageKeyPrekeyCurrentSignedPrekeyId + inCollection:OWSPrimaryStorageSignedPreKeyMetadataCollection]; if (preKeyId == nil) { return; @@ -128,8 +128,8 @@ NSString *const OWSPrimaryStorageKeyPrekeyCurrentSignedPrekeyId = @"currentSigne - (int)prekeyUpdateFailureCount { - NSNumber *value = [self.dbReadConnection objectForKey:OWSPrimaryStorageKeyPrekeyUpdateFailureCount - inCollection:OWSPrimaryStorageSignedPreKeyMetadataCollection]; + NSNumber *_Nullable value = [self.dbReadConnection objectForKey:OWSPrimaryStorageKeyPrekeyUpdateFailureCount + inCollection:OWSPrimaryStorageSignedPreKeyMetadataCollection]; // Will default to zero. return [value intValue]; }