mirror of https://github.com/ppy/osu
Flip condition to reduce nesting
This commit is contained in:
parent
157e1d8965
commit
29b29cde8e
|
@ -101,8 +101,9 @@ private void onIsHittingChanged(ValueChangedEvent<bool> isHitting)
|
|||
bodyAnimation.IsPlaying = isHitting.NewValue;
|
||||
}
|
||||
|
||||
if (lightContainer != null)
|
||||
{
|
||||
if (lightContainer == null)
|
||||
return;
|
||||
|
||||
if (isHitting.NewValue)
|
||||
{
|
||||
// Clear the fade out and, more importantly, the removal.
|
||||
|
@ -124,7 +125,6 @@ private void onIsHittingChanged(ValueChangedEvent<bool> isHitting)
|
|||
.OnComplete(d => Column.TopLevelContainer.Remove(d));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void onDirectionChanged(ValueChangedEvent<ScrollingDirection> direction)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue