Avoid unverifiable capture.

This commit is contained in:
Huo Yaoyuan 2017-06-22 20:34:28 +08:00
parent 1d4add9079
commit bb2e63e714
1 changed files with 2 additions and 1 deletions

View File

@ -117,7 +117,8 @@ public void ShowUser(User user)
for (int i = 0; i < u.ProfileOrder.Length; i++) for (int i = 0; i < u.ProfileOrder.Length; i++)
{ {
var sec = sections.FirstOrDefault(s => s.Identifier == u.ProfileOrder[i]); string id = u.ProfileOrder[i];
var sec = sections.FirstOrDefault(s => s.Identifier == id);
if (sec != null) if (sec != null)
{ {
sec.Depth = -i; sec.Depth = -i;