From ef8d1d7b86e3dd624df42e8675d844de52210122 Mon Sep 17 00:00:00 2001 From: Guy Royse Date: Thu, 22 Dec 2016 11:04:07 -0500 Subject: [PATCH] fixed spelling in error message, replaces stray tabs with spaces --- src/ios/TouchID.m | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ios/TouchID.m b/src/ios/TouchID.m index b35b9e2..f911d20 100644 --- a/src/ios/TouchID.m +++ b/src/ios/TouchID.m @@ -32,7 +32,7 @@ - (void)isAvailable:(CDVInvokedUrlCommand*)command{ [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId]; } else{ - CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString: @"Touch ID not availalbe"]; + CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString: @"Touch ID not available"]; [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId]; } } @@ -77,13 +77,13 @@ - (void)save:(CDVInvokedUrlCommand*)command{ -(void)delete:(CDVInvokedUrlCommand*)command{ self.TAG = (NSString*)[command.arguments objectAtIndex:0]; @try { - + if(self.TAG && [[NSUserDefaults standardUserDefaults] objectForKey:self.TAG]) { self.MyKeychainWrapper = [[KeychainWrapper alloc]init]; [self.MyKeychainWrapper resetKeychainItem]; } - + [[NSUserDefaults standardUserDefaults] removeObjectForKey:self.TAG]; CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; @@ -113,12 +113,12 @@ -(void)verify:(CDVInvokedUrlCommand*)command{ if(success){ NSString *password = [self.MyKeychainWrapper myObjectForKey:@"v_Data"]; - CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString: password]; + CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString: password]; [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId]; } if(error != nil) { - CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString: [NSString stringWithFormat:@"%li", error.code]]; - [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId]; + CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString: [NSString stringWithFormat:@"%li", error.code]]; + [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId]; } }); }];