mirror of https://github.com/ppy/osu
Simplify expression with ternary
This commit is contained in:
parent
c827e21506
commit
51d41515ef
|
@ -73,12 +73,7 @@ protected override double StrainValueOf(DifficultyHitObject current)
|
|||
|
||||
public Stamina(bool rightHand)
|
||||
{
|
||||
hand = 0;
|
||||
|
||||
if (rightHand)
|
||||
{
|
||||
hand = 1;
|
||||
}
|
||||
hand = rightHand ? 1 : 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue