Simplify expression with ternary

This commit is contained in:
Bartłomiej Dach 2020-08-18 19:54:20 +02:00
parent c827e21506
commit 51d41515ef
1 changed files with 1 additions and 6 deletions

View File

@ -73,12 +73,7 @@ protected override double StrainValueOf(DifficultyHitObject current)
public Stamina(bool rightHand)
{
hand = 0;
if (rightHand)
{
hand = 1;
}
hand = rightHand ? 1 : 0;
}
}
}