mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-27 07:04:57 +01:00
Minor cleanups
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user