From 5b4e6fc3372f1167e27f5a2575f7fc8589e0558a Mon Sep 17 00:00:00 2001 From: Dania Popov Date: Tue, 30 May 2023 13:35:29 -0700 Subject: [PATCH] Nullable --- Sources/Amplitude/AMPIdentifyInterceptor.h | 2 +- Sources/Amplitude/AMPIdentifyInterceptor.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Amplitude/AMPIdentifyInterceptor.h b/Sources/Amplitude/AMPIdentifyInterceptor.h index f26104b6..454cffed 100644 --- a/Sources/Amplitude/AMPIdentifyInterceptor.h +++ b/Sources/Amplitude/AMPIdentifyInterceptor.h @@ -29,7 +29,7 @@ + (instancetype _Nonnull)getIdentifyInterceptor:(AMPDatabaseHelper *_Nonnull)dbHelper backgroundQueue:(NSOperationQueue *_Nonnull)backgroundQueue; -- (NSMutableDictionary *_Nonnull)intercept:(NSMutableDictionary *_Nonnull)event; +- (NSMutableDictionary *_Nullable)intercept:(NSMutableDictionary *_Nonnull)event; - (NSMutableDictionary *_Nullable)getCombinedInterceptedIdentify; - (void)transferInterceptedIdentify; - (BOOL)setInterceptedIdentifyUploadPeriodSeconds:(int)uploadPeriodSeconds; diff --git a/Sources/Amplitude/AMPIdentifyInterceptor.m b/Sources/Amplitude/AMPIdentifyInterceptor.m index b51376a1..1bc45aed 100644 --- a/Sources/Amplitude/AMPIdentifyInterceptor.m +++ b/Sources/Amplitude/AMPIdentifyInterceptor.m @@ -112,7 +112,7 @@ - (BOOL)isIdEqual:(NSString *_Nonnull)id1 toId:(NSString *_Nonnull)id2 { return (id1 == nil ? id2 == nil : [id1 isEqualToString:id2]); } -- (NSMutableDictionary *)intercept:(NSMutableDictionary *_Nonnull)event { +- (NSMutableDictionary *_Nullable)intercept:(NSMutableDictionary *_Nonnull)event { if (_disabled) { return event; }