summaryrefslogtreecommitdiff
path: root/platform/ios/MGLMapboxEvents.m
diff options
context:
space:
mode:
Diffstat (limited to 'platform/ios/MGLMapboxEvents.m')
-rw-r--r--platform/ios/MGLMapboxEvents.m6
1 files changed, 4 insertions, 2 deletions
diff --git a/platform/ios/MGLMapboxEvents.m b/platform/ios/MGLMapboxEvents.m
index bf730af945..9125b56fdd 100644
--- a/platform/ios/MGLMapboxEvents.m
+++ b/platform/ios/MGLMapboxEvents.m
@@ -304,7 +304,7 @@ const NSTimeInterval MGLFlushInterval = 60;
// Can be called from any thread. Called implicitly from any
// public class convenience methods. May return nil if this feature is disabled.
//
-+ (instancetype)sharedManager {
++ (nullable instancetype)sharedManager {
if (NSProcessInfo.processInfo.mgl_isInterfaceBuilderDesignablesAgent) {
return nil;
}
@@ -597,7 +597,9 @@ const NSTimeInterval MGLFlushInterval = 60;
[request setHTTPBody:jsonData];
// Send non blocking HTTP Request to server
- NSURLSessionDataTask *task = [_session dataTaskWithRequest:request completionHandler: nil];
+ NSURLSessionDataTask *task = [_session dataTaskWithRequest:request completionHandler:^(__unused NSData * __nullable data, __unused NSURLResponse * __nullable response, __unused NSError * __nullable error)
+ {
+ }];
[task resume];
}
});