From 2fd46ef9063bccea941dd776cc90ef571b5f0b4e Mon Sep 17 00:00:00 2001 From: Chad Ramos Date: Thu, 7 Jan 2021 19:00:44 -0600 Subject: [PATCH] Update AppDelegate.cs Remove double null check. Nest null check always equals true if first is passed. --- .../NotificationHubSample.iOS/AppDelegate.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/WebServices/AzureNotificationHub/NotificationHubSample/NotificationHubSample.iOS/AppDelegate.cs b/WebServices/AzureNotificationHub/NotificationHubSample/NotificationHubSample.iOS/AppDelegate.cs index 37d84001c2..67b15597c2 100644 --- a/WebServices/AzureNotificationHub/NotificationHubSample/NotificationHubSample.iOS/AppDelegate.cs +++ b/WebServices/AzureNotificationHub/NotificationHubSample/NotificationHubSample.iOS/AppDelegate.cs @@ -82,10 +82,7 @@ public override void RegisteredForRemoteNotifications(UIApplication application, { if (errorCallback != null) { - if (errorCallback != null) - { - Debug.WriteLine($"RegisterTemplateAsync error: {errorCallback}"); - } + Debug.WriteLine($"RegisterTemplateAsync error: {errorCallback}"); } }); });