Skip to content

Commit

Permalink
fix nullable warnings (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-mnich authored Jan 27, 2025
1 parent 2c43ab2 commit ed3d384
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public ActionResult GetUserReport([FromQuery] int days, [FromQuery] DateTime? en
{
string user_id = (string)user_info["user_id"];
Guid user_guid = new Guid(user_id);
User user = _userManager.GetUserById(user_guid);
User? user = _userManager.GetUserById(user_guid);
bool has_image = !(user?.ProfileImage is null);
string user_name = user?.Username ?? "Not Known";

Expand Down Expand Up @@ -345,7 +345,7 @@ public ActionResult GetUsageStats(int days, DateTime? endDate, string? filter, s
else
{
Guid user_guid = new Guid(user_id);
User user = _userManager.GetUserById(user_guid);
User? user = _userManager.GetUserById(user_guid);
if (user != null)
{
user_name = user.Username;
Expand Down Expand Up @@ -424,7 +424,7 @@ public ActionResult GetBreakdownReport([FromRoute] string breakdownType, int day
if (row["label"] is string user_id)
{
Guid user_guid = new Guid(user_id);
User user = _userManager.GetUserById(user_guid);
User? user = _userManager.GetUserById(user_guid);

if (user != null)
{
Expand Down

0 comments on commit ed3d384

Please sign in to comment.