From a7cf00feb466d1e75545c916dbcc74ee85e49fba Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Fri, 12 May 2017 09:49:12 -0400 Subject: [PATCH] Respond to CR. // FREEBIE --- Signal/src/UIColor+OWS.m | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Signal/src/UIColor+OWS.m b/Signal/src/UIColor+OWS.m index ea6cf654f..0c7c660f6 100644 --- a/Signal/src/UIColor+OWS.m +++ b/Signal/src/UIColor+OWS.m @@ -133,18 +133,19 @@ BOOL result = #endif [self getRed:&r0 green:&g0 blue:&b0 alpha:&a0]; - OWSAssert(result) + OWSAssert(result); - CGFloat r1, - g1, b1, a1; + CGFloat r1, g1, b1, a1; #ifdef DEBUG result = #endif [otherColor getRed:&r1 green:&g1 blue:&b1 alpha:&a1]; - OWSAssert(result) return [UIColor colorWithRed:CGFloatLerp(r0, r1, alpha) - green:CGFloatLerp(g0, g1, alpha) - blue:CGFloatLerp(b0, b1, alpha) - alpha:CGFloatLerp(a0, a1, alpha)]; + OWSAssert(result); + + return [UIColor colorWithRed:CGFloatLerp(r0, r1, alpha) + green:CGFloatLerp(g0, g1, alpha) + blue:CGFloatLerp(b0, b1, alpha) + alpha:CGFloatLerp(a0, a1, alpha)]; } @end