formatting

This commit is contained in:
Kyle Spearrin 2018-09-20 23:50:02 -04:00
parent b0c6c09cea
commit 24304c2f55

View file

@ -26,8 +26,7 @@ namespace Bit.iOS.Autofill
private IGoogleAnalyticsService _googleAnalyticsService;
public CredentialProviderViewController(IntPtr handle) : base(handle)
{
}
{ }
public override void ViewDidLoad()
{
@ -101,7 +100,8 @@ namespace Bit.iOS.Autofill
canGetCredentials = lockType == App.Enums.LockType.None;
}
if(!canGetCredentials) {
if(!canGetCredentials)
{
var err = new NSError(new NSString("ASExtensionErrorDomain"),
Convert.ToInt32(ASExtensionErrorCode.UserInteractionRequired), null);
ExtensionContext.CancelRequest(err);
@ -216,7 +216,8 @@ namespace Bit.iOS.Autofill
{
DismissViewController(false, () =>
{
if(_context.CredentialIdentity != null) {
if(_context.CredentialIdentity != null)
{
ProvideCredential();
return;
}
@ -236,8 +237,7 @@ namespace Bit.iOS.Autofill
return;
}
CompleteRequest(
cipher.Login.Username?.Decrypt(cipher.OrganizationId),
CompleteRequest(cipher.Login.Username?.Decrypt(cipher.OrganizationId),
cipher.Login.Password?.Decrypt(cipher.OrganizationId),
cipher.Login.Totp?.Decrypt(cipher.OrganizationId));
}