Skip to content

Commit

Permalink
Merge pull request #43 from TimOliver/objc-cleanup
Browse files Browse the repository at this point in the history
Fix strange curly bracket style in `setTappedTintColorBrightnessOffset`
  • Loading branch information
TimOliver authored Oct 1, 2023
2 parents db4aec2 + 304caa5 commit aff8bdb
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions TORoundedButton/TORoundedButton.m
Original file line number Diff line number Diff line change
Expand Up @@ -373,12 +373,9 @@ - (void)setTappedTintColor:(UIColor *)tappedTintColor {
}

- (void)setTappedTintColorBrightnessOffset:(CGFloat)tappedTintColorBrightnessOffset {
if (TO_ROUNDED_BUTTON_FLOATS_MATCH(_tappedTintColorBrightnessOffset,
tappedTintColorBrightnessOffset))
{
return;
}

if (TO_ROUNDED_BUTTON_FLOATS_MATCH(_tappedTintColorBrightnessOffset,
tappedTintColorBrightnessOffset)) { return; }

_tappedTintColorBrightnessOffset = tappedTintColorBrightnessOffset;
[self _updateTappedTintColorForTintColor];
[self setNeedsLayout];
Expand Down

0 comments on commit aff8bdb

Please sign in to comment.