From a0be6605b79cc7d123d5686fe4d32dd6e146f59f Mon Sep 17 00:00:00 2001 From: shnist Date: Wed, 12 Dec 2018 12:35:17 +0000 Subject: [PATCH] chore(): format fixes for ios fileopener --- src/ios/FileOpener2.m | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/ios/FileOpener2.m b/src/ios/FileOpener2.m index fdebf6c..ee8a935 100644 --- a/src/ios/FileOpener2.m +++ b/src/ios/FileOpener2.m @@ -38,14 +38,14 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. if ([command.arguments count] >= 3) { showPreview = [[command.arguments objectAtIndex:2] boolValue]; } - - CGRect rect; - if ([command.arguments count] >= 4) { - NSArray *positionValues = command.arguments[3]; - rect = CGRectMake(0,0,[[positionValues objectAtIndex:0] floatValue],[[positionValues objectAtIndex:1] floatValue]); - } else { - rect = CGRectMake(0, 0, cont.view.bounds.size.width, cont.view.bounds.size.height); - } + + CGRect rect; + if ([command.arguments count] >= 4) { + NSArray *positionValues = command.arguments[3]; + rect = CGRectMake(0,0,[[positionValues objectAtIndex:0] floatValue],[[positionValues objectAtIndex:1] floatValue]); + } else { + rect = CGRectMake(0, 0, cont.view.bounds.size.width, cont.view.bounds.size.height); + } CDVViewController* cont = (CDVViewController*)[super viewController]; self.cdvViewController = cont;