Skip to content

Commit ac9f80e

Browse files
authored
Update AppDelegate.cs (xamarin#685)
Remove double null check. Nest null check always equals true if first is passed.
1 parent 16fe794 commit ac9f80e

File tree

1 file changed

+1
-4
lines changed
  • WebServices/AzureNotificationHub/NotificationHubSample/NotificationHubSample.iOS

1 file changed

+1
-4
lines changed

WebServices/AzureNotificationHub/NotificationHubSample/NotificationHubSample.iOS/AppDelegate.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,7 @@ public override void RegisteredForRemoteNotifications(UIApplication application,
8282
{
8383
if (errorCallback != null)
8484
{
85-
if (errorCallback != null)
86-
{
87-
Debug.WriteLine($"RegisterTemplateAsync error: {errorCallback}");
88-
}
85+
Debug.WriteLine($"RegisterTemplateAsync error: {errorCallback}");
8986
}
9087
});
9188
});

0 commit comments

Comments
 (0)