mirror of
https://github.com/osukey/osukey.git
synced 2025-04-29 02:37:25 +09: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;
|
if (CurrentPlacement == null) return;
|
||||||
|
|
||||||
switch (state)
|
if (state == TernaryState.True)
|
||||||
{
|
CurrentPlacement.HitObject.Samples = CurrentPlacement.HitObject.Samples.Select(s => s.With(newBank: bankName)).ToList();
|
||||||
case 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" };
|
public readonly Bindable<TernaryState> NewCombo = new Bindable<TernaryState> { Description = "New Combo" };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user