From edef84a4f9fe99c7d6bb99c0efa7147b88115894 Mon Sep 17 00:00:00 2001 From: kspearrin Date: Fri, 21 Sep 2018 20:40:34 -0400 Subject: [PATCH] return instead of else --- src/iOS/AppDelegate.cs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/iOS/AppDelegate.cs b/src/iOS/AppDelegate.cs index 207fbcc1a..ec9470f2f 100644 --- a/src/iOS/AppDelegate.cs +++ b/src/iOS/AppDelegate.cs @@ -167,11 +167,9 @@ namespace Bit.iOS } await ASCredentialIdentityStore.SharedStore.SaveCredentialIdentitiesAsync( new ASPasswordCredentialIdentity[] { identity }); + return; } - else - { - await ASHelpers.ReplaceAllIdentities(_cipherService); - } + await ASHelpers.ReplaceAllIdentities(_cipherService); }); MessagingCenter.Subscribe( @@ -186,11 +184,9 @@ namespace Bit.iOS } await ASCredentialIdentityStore.SharedStore.RemoveCredentialIdentitiesAsync( new ASPasswordCredentialIdentity[] { identity }); + return; } - else - { - await ASHelpers.ReplaceAllIdentities(_cipherService); - } + await ASHelpers.ReplaceAllIdentities(_cipherService); }); MessagingCenter.Subscribe(