1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-27 12:26:31 +01:00

return instead of else

This commit is contained in:
kspearrin 2018-09-21 20:40:34 -04:00
parent ec9b2d7f7d
commit edef84a4f9

View File

@ -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<Xamarin.Forms.Application, Cipher>(
@ -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<Xamarin.Forms.Application>(