mirror of
https://github.com/ppy/osu.git
synced 2026-05-23 20:20:16 +08:00
Don't use switch for single case statement
This commit is contained in:
@@ -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" };
|
||||
|
||||
Reference in New Issue
Block a user