Don't use switch for single case statement

This commit is contained in:
Dean Herbert 2023-05-24 16:14:05 +09:00
parent a22ad98cb7
commit fc22c75464

View File

@ -201,12 +201,8 @@ namespace osu.Game.Screens.Edit.Compose.Components
{
if (CurrentPlacement == null) return;
switch (state)
{
case TernaryState.True:
CurrentPlacement.HitObject.Samples = CurrentPlacement.HitObject.Samples.Select(s => s.With(newBank: bankName)).ToList();
break;
}
if (state == TernaryState.True)
CurrentPlacement.HitObject.Samples = CurrentPlacement.HitObject.Samples.Select(s => s.With(newBank: bankName)).ToList();
}
public readonly Bindable<TernaryState> NewCombo = new Bindable<TernaryState> { Description = "New Combo" };