diff --git a/Sources/Amplitude/AMPDatabaseHelper.m b/Sources/Amplitude/AMPDatabaseHelper.m index 80ea7160..49ea9f66 100644 --- a/Sources/Amplitude/AMPDatabaseHelper.m +++ b/Sources/Amplitude/AMPDatabaseHelper.m @@ -153,7 +153,7 @@ - (BOOL)inDatabase:(void (^)(sqlite3 *db))block { __block BOOL success = YES; - dispatch_sync(_queue, ^() { + dispatch_sync(_queue, ^{ if (sqlite3_open([self->_databasePath UTF8String], &self->_database) != SQLITE_OK) { AMPLITUDE_LOG(@"Failed to open database"); sqlite3_close(self->_database); @@ -189,7 +189,7 @@ - (BOOL)inDatabaseWithStatement:(NSString*)SQLString block:(void (^)(sqlite3_stm __block BOOL success = YES; - dispatch_sync(_queue, ^() { + dispatch_sync(_queue, ^{ if (sqlite3_open([self->_databasePath UTF8String], &self->_database) != SQLITE_OK) { AMPLITUDE_LOG(@"Failed to open database"); sqlite3_close(self->_database); diff --git a/Sources/Amplitude/AMPEventExplorer.m b/Sources/Amplitude/AMPEventExplorer.m index 2a05d38f..6fdb1f9b 100644 --- a/Sources/Amplitude/AMPEventExplorer.m +++ b/Sources/Amplitude/AMPEventExplorer.m @@ -46,7 +46,7 @@ - (instancetype)initWithInstanceName:(NSString *)instanceName { } - (void)showBubbleView { - dispatch_async(dispatch_get_main_queue(), ^(void){ + dispatch_async(dispatch_get_main_queue(), ^{ CGRect screenRect = [[UIScreen mainScreen] bounds]; CGFloat screenWidth = screenRect.size.width; CGFloat screenHeight = screenRect.size.height; @@ -58,7 +58,7 @@ - (void)showBubbleView { 35)]; dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1 * NSEC_PER_SEC)); - dispatch_after(popTime, dispatch_get_main_queue(), ^(void) { + dispatch_after(popTime, dispatch_get_main_queue(), ^{ [[AMPUtils getKeyWindow] addSubview:self.bubbleView]; }); @@ -68,7 +68,7 @@ - (void)showBubbleView { } - (void)showInfoView { - dispatch_async(dispatch_get_main_queue(), ^(void){ + dispatch_async(dispatch_get_main_queue(), ^{ if (self.bubbleView != nil) { UIViewController *rootViewController = [[AMPUtils getKeyWindow] rootViewController]; diff --git a/Sources/Amplitude/Amplitude.m b/Sources/Amplitude/Amplitude.m index 109c3a8a..b622afa0 100644 --- a/Sources/Amplitude/Amplitude.m +++ b/Sources/Amplitude/Amplitude.m @@ -461,7 +461,7 @@ - (void)initializeApiKey:(NSString *)apiKey // Release build #if !RELEASE if (self.showEventExplorer) { - dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^(void) { + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ if (self.eventExplorer == nil) { self.eventExplorer = [[AMPEventExplorer alloc] initWithInstanceName:self.instanceName];