From ed9c1464a191ffbeb161969f1214d55a8674cfda Mon Sep 17 00:00:00 2001 From: FeTetra Date: Sat, 8 Mar 2025 12:46:58 -0500 Subject: [PATCH] Fix zaprit suggestion --- .../Controllers/UserController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ProjectLighthouse.Servers.GameServer/Controllers/UserController.cs b/ProjectLighthouse.Servers.GameServer/Controllers/UserController.cs index ed0dbe12..463e2fee 100644 --- a/ProjectLighthouse.Servers.GameServer/Controllers/UserController.cs +++ b/ProjectLighthouse.Servers.GameServer/Controllers/UserController.cs @@ -37,10 +37,10 @@ public class UserController : ControllerBase [HttpGet("user/{username}")] public async Task GetUser(string username) { - UserEntity? targetUser = await this.database.Users.FirstOrDefaultAsync(u => u.Username == username); - if (targetUser == null) return this.NotFound(); + UserEntity? user = await this.database.Users.FirstOrDefaultAsync(u => u.Username == username); + if (user == null) return this.NotFound(); - return this.Ok(GameUser.CreateFromEntity(targetUser, this.GetToken().GameVersion)); + return this.Ok(GameUser.CreateFromEntity(user, this.GetToken().GameVersion)); } [HttpGet("users")]