Nullify RootController

This commit is contained in:
Jordan Dominion
2023-12-20 15:49:30 -05:00
parent 0e34a66626
commit ee0953ba81
@@ -12,8 +12,6 @@ using Tgstation.Server.Host.Extensions;
using Tgstation.Server.Host.System;
using Tgstation.Server.Host.Utils;
#nullable disable
namespace Tgstation.Server.Host.Controllers
{
/// <summary>
@@ -106,7 +104,7 @@ namespace Tgstation.Server.Host.Controllers
else
return Redirect(ApiDocumentationRoute);
Dictionary<string, string> links;
Dictionary<string, string>? links;
if (panelEnabled)
links = new Dictionary<string, string>()
{
@@ -136,7 +134,7 @@ namespace Tgstation.Server.Host.Controllers
? LogoSvgWindowsName
: LogoSvgLinuxName;
return (IActionResult)this.TryServeFile(hostEnvironment, logger, $"{logoFileName}.svg") ?? NotFound();
return (IActionResult?)this.TryServeFile(hostEnvironment, logger, $"{logoFileName}.svg") ?? NotFound();
}
}
}