From 45b8464d1cb676080d24e3cc5a4036ff65d804cb Mon Sep 17 00:00:00 2001 From: LumaLivy Date: Mon, 8 Nov 2021 13:41:24 -0500 Subject: [PATCH] Update old variable name for clarity --- ProjectLighthouse/Controllers/UserController.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ProjectLighthouse/Controllers/UserController.cs b/ProjectLighthouse/Controllers/UserController.cs index 4df6e1f2..32db5f5e 100644 --- a/ProjectLighthouse/Controllers/UserController.cs +++ b/ProjectLighthouse/Controllers/UserController.cs @@ -1,3 +1,4 @@ +#nullable enable using System; using System.Collections.Generic; using System.IO; @@ -41,13 +42,13 @@ namespace LBPUnion.ProjectLighthouse.Controllers [HttpGet("users")] public async Task GetUserAlt([FromQuery] string[] u) { - List tasks = new(); + List serializedUsers = new(); foreach (string userId in u) { - tasks.Add(await this.GetSerializedUser(userId)); + serializedUsers.Add(await this.GetSerializedUser(userId)); } - string serialized = tasks.Aggregate(string.Empty, (current, u) => u == null ? current : current + u); + string serialized = serializedUsers.Aggregate(string.Empty, (current, u) => u == null ? current : current + u); return this.Ok(LbpSerializer.StringElement("users", serialized)); }