Skip to content

Commit ea2fa1a

Browse files
committed
Do no track dimensions if they are nil
1 parent 155f30b commit ea2fa1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Parse/Parse/Internal/Analytics/Controller/PFAnalyticsController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ + (instancetype)controllerWithDataSource:(id<PFEventuallyQueueProvider>)dataSour
7979
@strongify(self);
8080
NSError *error;
8181
NSDictionary *encodedDimensions = [[PFNoObjectEncoder objectEncoder] encodeObject:dimensions error:&error];
82-
if (encodedDimensions == nil && error != nil) {
82+
if (encodedDimensions == nil) {
8383
return [BFTask taskWithError:error];
8484
}
8585
PFRESTCommand *command = [PFRESTAnalyticsCommand trackEventCommandWithEventName:name

0 commit comments

Comments
 (0)