Skip to content

Commit

Permalink
Merge pull request sjhoeksma#10 from guyroyse/master
Browse files Browse the repository at this point in the history
fixed spelling in error message, replaces stray tabs with spaces
  • Loading branch information
sjhoeksma committed Dec 22, 2016
2 parents ce8f43b + ef8d1d7 commit 8229269
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ios/TouchID.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
}
Expand Down Expand Up @@ -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];
Expand Down Expand Up @@ -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];
}
});
}];
Expand Down

0 comments on commit 8229269

Please sign in to comment.