Skip to content

Commit ed72bcf

Browse files
Fix assignment issue detected through static analysis
1 parent 7165c65 commit ed72bcf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Classes/MGSplitViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -902,9 +902,9 @@ - (void)setDividerStyle:(MGSplitViewDividerStyle)newStyle
902902
_dividerStyle = newStyle;
903903

904904
// Reconfigure general appearance and behaviour.
905-
float cornerRadius;
905+
CGFloat cornerRadius = kMGDefaultCornerRadius;
906+
906907
if (_dividerStyle == MGSplitViewDividerStyleThin) {
907-
cornerRadius = kMGDefaultCornerRadius;
908908
_splitWidth = kMGDefaultSplitWidth;
909909
self.allowsDraggingDivider = NO;
910910

0 commit comments

Comments
 (0)