mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-11 22:38:39 +00:00
Use better null/empty check
This commit is contained in:
parent
ed1eac696a
commit
d36a7d5765
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers
|
||||||
if (token == null) return this.StatusCode(403, "");
|
if (token == null) return this.StatusCode(403, "");
|
||||||
|
|
||||||
string? user = await this.GetSerializedUser(username, token.GameVersion);
|
string? user = await this.GetSerializedUser(username, token.GameVersion);
|
||||||
if (user == "") return this.NotFound();
|
if (string.IsNullOrEmpty(user)) return this.NotFound();
|
||||||
|
|
||||||
return this.Ok(user);
|
return this.Ok(user);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue