mirror of
https://github.com/ppy/osu
synced 2025-01-11 00:29:30 +00:00
Don't use switch
for single case
statement
This commit is contained in:
parent
a22ad98cb7
commit
fc22c75464
@ -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" };
|
||||
|
Loading…
Reference in New Issue
Block a user