Skip to content

Commit

Permalink
Avoiding extra conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryTsepelev committed Jan 31, 2013
1 parent d6f5c46 commit 6cbfdd3
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Views/MKNumberBadgeView/MKNumberBadgeView.m
Expand Up @@ -273,14 +273,7 @@ - (void)setValue:(NSUInteger)inValue
{ {
_value = inValue; _value = inValue;


if (self.hideWhenZero == YES && _value == 0) self.hidden = self.hideWhenZero && _value == 0;
{
self.hidden = YES;
}
else
{
self.hidden = NO;
}


[self setNeedsDisplay]; [self setNeedsDisplay];
} }
Expand Down

0 comments on commit 6cbfdd3

Please sign in to comment.