File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -386,7 +386,7 @@ - (BOOL)isMeasurementEnabled {
386386 return NO ;
387387 }
388388 NSNumber *value = self.analyticsOptionsDictionary [kFIRIsMeasurementEnabled ];
389- if (! value) {
389+ if (value == nil ) {
390390 return YES ; // Enable Measurement by default when the key is not in the dictionary.
391391 }
392392 return [value boolValue ];
@@ -397,15 +397,15 @@ - (BOOL)isAnalyticsCollectionEnabled {
397397 return NO ;
398398 }
399399 NSNumber *value = self.analyticsOptionsDictionary [kFIRIsAnalyticsCollectionEnabled ];
400- if (! value) {
400+ if (value == nil ) {
401401 return self.isMeasurementEnabled ; // Fall back to older plist flag.
402402 }
403403 return [value boolValue ];
404404}
405405
406406- (BOOL )isAnalyticsCollectionDeactivated {
407407 NSNumber *value = self.analyticsOptionsDictionary [kFIRIsAnalyticsCollectionDeactivated ];
408- if (! value) {
408+ if (value == nil ) {
409409 return NO ; // Analytics Collection is not deactivated when the key is not in the dictionary.
410410 }
411411 return [value boolValue ];
You can’t perform that action at this time.
0 commit comments