From c006a3e6e64e4bb8aa28b3b1279e7f55016d450c Mon Sep 17 00:00:00 2001 From: Martin Ceperley Date: Tue, 2 Aug 2016 14:39:42 -0400 Subject: [PATCH] Fix assert Fixes #582 --- Analytics/Classes/SEGAnalytics.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Analytics/Classes/SEGAnalytics.m b/Analytics/Classes/SEGAnalytics.m index 31ac12dfd..9c7d774e8 100644 --- a/Analytics/Classes/SEGAnalytics.m +++ b/Analytics/Classes/SEGAnalytics.m @@ -256,7 +256,7 @@ - (void)identify:(NSString *)userId traits:(NSDictionary *)traits - (void)identify:(NSString *)userId traits:(NSDictionary *)traits options:(NSDictionary *)options { - NSCAssert2(userId.length > 0 > traits.count > 0, @"either userId (%@) or traits (%@) must be provided.", userId, traits); + NSCAssert2(userId.length > 0 || traits.count > 0, @"either userId (%@) or traits (%@) must be provided.", userId, traits); NSString *anonymousId = [options objectForKey:@"anonymousId"]; if (anonymousId) {