Admin spring cleaning (#36190)

* Cleanup warnings in administration

* Job command cleanup

* Reverting already implemented changes
This commit is contained in:
J
2025-04-14 04:06:36 +00:00
committed by GitHub
parent 2024a29c60
commit 7e4045d274
7 changed files with 13 additions and 15 deletions

View File

@@ -4,10 +4,8 @@ using System.Reflection;
using System.Threading.Tasks;
using Content.Server.Chat.Managers;
using Content.Server.Database;
using Content.Server.Players;
using Content.Shared.Administration;
using Content.Shared.CCVar;
using Content.Shared.Info;
using Content.Shared.Players;
using Robust.Server.Console;
using Robust.Server.Player;
@@ -108,7 +106,7 @@ namespace Content.Server.Administration.Managers
// The DB function handles this scenario fine, but it's worth noting.
await _dbManager.UpdateAdminDeadminnedAsync(player.UserId, newState);
}
catch (Exception e)
catch (Exception)
{
_sawmill.Error("Failed to save deadmin state to database for {Admin}", player.UserId);
}