1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 20:43:21 +08:00

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:
if (state == TernaryState.True)
CurrentPlacement.HitObject.Samples = CurrentPlacement.HitObject.Samples.Select(s => s.With(newBank: bankName)).ToList();
break;
}
}
public readonly Bindable<TernaryState> NewCombo = new Bindable<TernaryState> { Description = "New Combo" };