From 37b7bf18e9daa17c176c31283bedcefc231a3a99 Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Wed, 21 Jun 2017 20:15:34 -0400 Subject: [PATCH] clarify code and clean up code formatting I think we hit some pathological cases in clang format, but this is clearer anyway IMO // FREEBIE --- .../src/ViewControllers/FingerprintViewController.m | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Signal/src/ViewControllers/FingerprintViewController.m b/Signal/src/ViewControllers/FingerprintViewController.m index 299828cb6..84dbf2e55 100644 --- a/Signal/src/ViewControllers/FingerprintViewController.m +++ b/Signal/src/ViewControllers/FingerprintViewController.m @@ -515,11 +515,13 @@ typedef void (^CustomLayoutBlock)(); if (gestureRecognizer.state == UIGestureRecognizerStateRecognized) { BOOL isVerified = [[OWSIdentityManager sharedManager] verificationStateForRecipientId:self.recipientId] == OWSVerificationStateVerified; - [[OWSIdentityManager sharedManager] - setVerificationState:(isVerified ? OWSVerificationStateDefault : OWSVerificationStateVerified)identityKey - :self.identityKey - recipientId:self.recipientId - isUserInitiatedChange:YES]; + + OWSVerificationState newVerificationState + = (isVerified ? OWSVerificationStateDefault : OWSVerificationStateVerified); + [[OWSIdentityManager sharedManager] setVerificationState:newVerificationState + identityKey:self.identityKey + recipientId:self.recipientId + isUserInitiatedChange:YES]; [self dismissViewControllerAnimated:YES completion:nil]; }