We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1b26156 + b3e4928 commit 4403d0fCopy full SHA for 4403d0f
src/ios/BranchSDK.m
@@ -121,10 +121,8 @@ - (void)setRequestMetadata:(CDVInvokedUrlCommand*)command
121
- (void)disableTracking:(CDVInvokedUrlCommand*)command
122
{
123
124
- bool enabled = [[command.arguments objectAtIndex:0] boolValue] == YES;
125
- if (enabled) {
126
- [Branch setTrackingDisabled:enabled];
127
- }
+ bool enabled = [[command.arguments objectAtIndex:0] boolValue];
+ [Branch setTrackingDisabled:enabled];
128
129
CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsBool:enabled];
130
0 commit comments