Skip to content

Commit f56db59

Browse files
committed
Fixed lint
1 parent 81fbde4 commit f56db59

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

GoogleUtilities/AppDelegateSwizzler/GULAppDelegateSwizzler.m

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
#import "GoogleUtilities/Logger/Public/GoogleUtilities/GULLogger.h"
2222
#import "GoogleUtilities/Network/Public/GoogleUtilities/GULMutableDictionary.h"
2323

24-
#import <objc/runtime.h>
2524
#import <dispatch/group.h>
25+
#import <objc/runtime.h>
2626

2727
// Implementations need to be typed before calling the implementation directly to cast the
2828
// arguments and the return types correctly. Otherwise, it will crash the app.
@@ -882,7 +882,7 @@ - (void)application:(GULApplication *)application
882882
GULRealDidReceiveRemoteNotificationWithCompletionIMP
883883
didReceiveRemoteNotificationWithCompletionIMP =
884884
[didReceiveRemoteNotificationWithCompletionIMPPointer pointerValue];
885-
885+
886886
dispatch_group_t __block callbackGroup = dispatch_group_create();
887887
UIBackgroundFetchResult __block latestFetchResult = UIBackgroundFetchResultNoData;
888888
dispatch_group_notify(callbackGroup, dispatch_get_main_queue(), ^() {
@@ -892,20 +892,21 @@ - (void)application:(GULApplication *)application
892892
[GULAppDelegateSwizzler
893893
notifyInterceptorsWithMethodSelector:methodSelector
894894
callback:^(id<GULApplicationDelegate> interceptor) {
895-
896895
dispatch_group_enter(callbackGroup);
897-
void (^localCompletionHandler)(UIBackgroundFetchResult) = ^void (UIBackgroundFetchResult fetchResult){
898-
latestFetchResult = fetchResult;
899-
dispatch_group_leave(callbackGroup);
900-
};
901-
896+
void (^localCompletionHandler)(UIBackgroundFetchResult) =
897+
^void(UIBackgroundFetchResult fetchResult) {
898+
latestFetchResult = fetchResult;
899+
dispatch_group_leave(callbackGroup);
900+
};
901+
902902
NSInvocation *invocation = [GULAppDelegateSwizzler
903903
appDelegateInvocationForSelector:methodSelector];
904904
[invocation setTarget:interceptor];
905905
[invocation setSelector:methodSelector];
906906
[invocation setArgument:(void *)(&application) atIndex:2];
907907
[invocation setArgument:(void *)(&userInfo) atIndex:3];
908-
[invocation setArgument:(void *)(&localCompletionHandler) atIndex:4];
908+
[invocation setArgument:(void *)(&localCompletionHandler)
909+
atIndex:4];
909910
[invocation invoke];
910911
}];
911912
// Call the real implementation if the real App Delegate has any.

0 commit comments

Comments
 (0)