Minor cleanups

This commit is contained in:
Dominion
2023-04-21 03:15:56 -04:00
parent a1b5dbe6ac
commit 0444eb90ab
2 changed files with 2 additions and 2 deletions
@@ -195,7 +195,7 @@ namespace Tgstation.Server.Host.Controllers
{
using (LogContext.PushProperty("Request", $"{Request.Method} {Request.Path}"))
{
logger.LogTrace("Swarm request from {0}...", Request.HttpContext.Connection.RemoteIpAddress);
logger.LogTrace("Swarm request from {remoteIP}...", Request.HttpContext.Connection.RemoteIpAddress);
if (swarmConfiguration.PrivateKey == null)
{
logger.LogDebug("Attempted swarm request without private key configured!");
@@ -83,7 +83,7 @@ namespace Tgstation.Server.Host.System
try
{
var pointerChildHandlesList = GCHandle.ToIntPtr(gcChildhandlesList);
NativeMethods.EnumWindowProc childProc = new NativeMethods.EnumWindowProc(EnumWindow);
NativeMethods.EnumWindowProc childProc = new (EnumWindow);
NativeMethods.EnumChildWindows(mainWindow, childProc, pointerChildHandlesList);
}
finally