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:
parent
ba539abac7
commit
386d788813
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user