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:
Bartłomiej Dach 2021-05-14 23:38:44 +02:00
parent c9facf70f9
commit f716fb0968
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ protected override void Update()
base.Update();
// 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
if (!InternalChildren.Any()