summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Bounds <jesse@rebounds.net>2016-01-27 13:46:31 -0800
committerJesse Bounds <jesse@rebounds.net>2016-01-27 13:46:31 -0800
commitfab847c128601524288d0de2e65ed24e65270027 (patch)
tree63b22e324916f43fd9dfa8cdae9ae1b532e0c353
parent3d32c63f7deafeb29d83324846b4b65246c45448 (diff)
downloadqtlocation-mapboxgl-fab847c128601524288d0de2e65ed24e65270027.tar.gz
[ios] Remove incorrect tab whitespace in method
This just removes some whitespace that made the implementation of `pushTurnstileEvent` in `MGLMapboxEvents` look a little strange. The indentation was right below an early return conditional (with no braces) so it felt like the right thing to do (for readability) to clean it up. Choosing and enforcing a consistent style for conditionals with one line might be a good idea, too, but this small change does not go there.
-rw-r--r--platform/ios/src/MGLMapboxEvents.m36
1 files changed, 17 insertions, 19 deletions
diff --git a/platform/ios/src/MGLMapboxEvents.m b/platform/ios/src/MGLMapboxEvents.m
index 8138d29169..567b0c3c90 100644
--- a/platform/ios/src/MGLMapboxEvents.m
+++ b/platform/ios/src/MGLMapboxEvents.m
@@ -439,25 +439,23 @@ const NSTimeInterval MGLFlushInterval = 60;
if ( ! strongSelf) return;
- // Build only IDFV event
- NSString *vid = [[[UIDevice currentDevice] identifierForVendor] UUIDString];
-
- if (!vid) return;
-
- NSDictionary *vevt = @{
- @"event" : MGLEventTypeAppUserTurnstile,
- @"created" : [strongSelf.rfc3339DateFormatter stringFromDate:[NSDate date]],
- @"appBundleId" : strongSelf.appBundleId,
- @"vendorId": vid,
- @"version": @(version),
- @"instance": strongSelf.instanceID
- };
-
- // Add to Queue
- [_eventQueue addObject:vevt];
-
- // Flush
- [strongSelf flush];
+ // Build only IDFV event
+ NSString *vid = [[[UIDevice currentDevice] identifierForVendor] UUIDString];
+
+ if (!vid) return;
+
+ NSDictionary *vevt = @{@"event" : MGLEventTypeAppUserTurnstile,
+ @"created" : [strongSelf.rfc3339DateFormatter stringFromDate:[NSDate date]],
+ @"appBundleId" : strongSelf.appBundleId,
+ @"vendorId": vid,
+ @"version": @(version),
+ @"instance": strongSelf.instanceID};
+
+ // Add to Queue
+ [_eventQueue addObject:vevt];
+
+ // Flush
+ [strongSelf flush];
if ([strongSelf debugLoggingEnabled]) {
[strongSelf writeEventToLocalDebugLog:vevt];