Skip to content

Commit

Permalink
Remove completion handler check
Browse files Browse the repository at this point in the history
  • Loading branch information
kroikie committed Dec 14, 2016
1 parent a964ddb commit 6c6d677
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions messaging/MessagingExample/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,7 @@ - (void)application:(UIApplication *)application didReceiveRemoteNotification:(N
// Print full message.
NSLog(@"%@", userInfo);

if (completionHandler) {
completionHandler(UIBackgroundFetchResultNewData);
}
completionHandler(UIBackgroundFetchResultNewData);
}
// [END receive_message]

Expand Down
4 changes: 1 addition & 3 deletions messaging/MessagingExampleSwift/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
// Print full message.
print(userInfo)

if completionHandler {
completionHandler(UIBackgroundFetchResult.newData)
}
completionHandler(UIBackgroundFetchResult.newData)
}
// [END receive_message]

Expand Down

0 comments on commit 6c6d677

Please sign in to comment.