mirror of
https://github.com/bitwarden/android.git
synced 2025-01-11 18:57:39 +03:00
return instead of else
This commit is contained in:
parent
ec9b2d7f7d
commit
edef84a4f9
1 changed files with 4 additions and 8 deletions
|
@ -167,11 +167,9 @@ namespace Bit.iOS
|
||||||
}
|
}
|
||||||
await ASCredentialIdentityStore.SharedStore.SaveCredentialIdentitiesAsync(
|
await ASCredentialIdentityStore.SharedStore.SaveCredentialIdentitiesAsync(
|
||||||
new ASPasswordCredentialIdentity[] { identity });
|
new ASPasswordCredentialIdentity[] { identity });
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else
|
await ASHelpers.ReplaceAllIdentities(_cipherService);
|
||||||
{
|
|
||||||
await ASHelpers.ReplaceAllIdentities(_cipherService);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
MessagingCenter.Subscribe<Xamarin.Forms.Application, Cipher>(
|
MessagingCenter.Subscribe<Xamarin.Forms.Application, Cipher>(
|
||||||
|
@ -186,11 +184,9 @@ namespace Bit.iOS
|
||||||
}
|
}
|
||||||
await ASCredentialIdentityStore.SharedStore.RemoveCredentialIdentitiesAsync(
|
await ASCredentialIdentityStore.SharedStore.RemoveCredentialIdentitiesAsync(
|
||||||
new ASPasswordCredentialIdentity[] { identity });
|
new ASPasswordCredentialIdentity[] { identity });
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else
|
await ASHelpers.ReplaceAllIdentities(_cipherService);
|
||||||
{
|
|
||||||
await ASHelpers.ReplaceAllIdentities(_cipherService);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
MessagingCenter.Subscribe<Xamarin.Forms.Application>(
|
MessagingCenter.Subscribe<Xamarin.Forms.Application>(
|
||||||
|
|
Loading…
Reference in a new issue