add debug assert

This commit is contained in:
Gagah Pangeran Rosfatiputra
2021-05-27 17:12:15 +07:00
parent 0b600db814
commit e1836cd1b2

View File

@ -2,6 +2,7 @@
// See the LICENCE file in the repository root for full licence text. // See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics;
using System.Linq; using System.Linq;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
@ -69,6 +70,8 @@ namespace osu.Game.Overlays.Wiki
{ {
var panelsNode = html.DocumentNode.SelectNodes("//div[contains(@class, 'wiki-main-page-panel')]").ToArray(); var panelsNode = html.DocumentNode.SelectNodes("//div[contains(@class, 'wiki-main-page-panel')]").ToArray();
Debug.Assert(panelsNode.Length > 1);
var i = 0; var i = 0;
while (i < panelsNode.Length) while (i < panelsNode.Length)