Reduce warning when "foundation assertions" disabled
Showing
1 changed file
with
1 additions
and
2 deletions
@@ -191,8 +191,7 @@ | @@ -191,8 +191,7 @@ | ||
191 | [self.delegate constraint:self shouldBeReplacedWithConstraint:compositeConstraint]; | 191 | [self.delegate constraint:self shouldBeReplacedWithConstraint:compositeConstraint]; |
192 | return compositeConstraint; | 192 | return compositeConstraint; |
193 | } else { | 193 | } else { |
194 | - BOOL layoutConstantUpdate = self.layoutRelation == relation && [attribute isKindOfClass:NSNumber.class]; | ||
195 | - NSAssert(!self.hasLayoutRelation || layoutConstantUpdate, @"Redefinition of constraint relation"); | 194 | + NSAssert(!self.hasLayoutRelation || self.layoutRelation == relation && [attribute isKindOfClass:NSNumber.class], @"Redefinition of constraint relation"); |
196 | self.layoutRelation = relation; | 195 | self.layoutRelation = relation; |
197 | self.secondViewAttribute = attribute; | 196 | self.secondViewAttribute = attribute; |
198 | return self; | 197 | return self; |
-
Please register or login to post a comment