Simplify expression with ternary

This commit is contained in:
Bartłomiej Dach 2020-08-18 19:54:20 +02:00
parent c827e21506
commit 51d41515ef

View File

@ -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;
}
} }
} }
} }