mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 17:32:54 +08:00
Remove bogus InternalChildren
null-check
`InternalChildren` can't viably be `null`, and if it were, we have bigger problems. The removed null-check was triggering false-positive inspections further down.
This commit is contained in:
parent
c9facf70f9
commit
f716fb0968
@ -57,7 +57,7 @@ namespace osu.Game.Rulesets.Taiko.Skinning.Legacy
|
|||||||
base.Update();
|
base.Update();
|
||||||
|
|
||||||
// store X before checking wide enough so if we perform layout there is no positional discrepancy.
|
// store X before checking wide enough so if we perform layout there is no positional discrepancy.
|
||||||
float currentX = (InternalChildren?.FirstOrDefault()?.X ?? 0) - (float)Clock.ElapsedFrameTime * 0.1f;
|
float currentX = (InternalChildren.FirstOrDefault()?.X ?? 0) - (float)Clock.ElapsedFrameTime * 0.1f;
|
||||||
|
|
||||||
// ensure we have enough sprites
|
// ensure we have enough sprites
|
||||||
if (!InternalChildren.Any()
|
if (!InternalChildren.Any()
|
||||||
|
Loading…
Reference in New Issue
Block a user