mirror of
https://github.com/ppy/osu
synced 2024-12-11 17:42:28 +00:00
Simplify expression with ternary
This commit is contained in:
parent
c827e21506
commit
51d41515ef
@ -73,12 +73,7 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Skills
|
|||||||
|
|
||||||
public Stamina(bool rightHand)
|
public Stamina(bool rightHand)
|
||||||
{
|
{
|
||||||
hand = 0;
|
hand = rightHand ? 1 : 0;
|
||||||
|
|
||||||
if (rightHand)
|
|
||||||
{
|
|
||||||
hand = 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user