mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-23 21:16:52 +01:00
Nullify RootController
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user