1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 07:47:25 +08:00

Change if-else to ternary if

This commit is contained in:
Desconocidosmh 2019-08-15 18:32:45 +02:00
parent ba539abac7
commit 386d788813

View File

@ -113,11 +113,7 @@ namespace osu.Game.Rulesets.Taiko.Replays
else
throw new InvalidOperationException("Unknown hit object type.");
TaikoHitObject nextHitObject;
if (i < Beatmap.HitObjects.Count - 1)
nextHitObject = Beatmap.HitObjects[i + 1];
else
nextHitObject = null;
TaikoHitObject nextHitObject = i < Beatmap.HitObjects.Count - 1 ? Beatmap.HitObjects[i + 1] : null;
bool canDelayKeyUp = nextHitObject != null && nextHitObject.StartTime > endTime + KEY_UP_DELAY;