From 44f1cf9c8cbcb0a06875fe3215fc88d87efae6f8 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Thu, 7 May 2020 14:33:34 -0400 Subject: [PATCH] C#8 upgrade --- src/Tgstation.Server.Host/Core/Application.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tgstation.Server.Host/Core/Application.cs b/src/Tgstation.Server.Host/Core/Application.cs index ce953c1337..e5fb78f0f5 100644 --- a/src/Tgstation.Server.Host/Core/Application.cs +++ b/src/Tgstation.Server.Host/Core/Application.cs @@ -197,7 +197,7 @@ namespace Tgstation.Server.Host.Core if (hostingEnvironment.IsDevelopment()) { - string GetDocumentationFilePath(string assemblyLocation) => IOManager.ConcatPath(IOManager.GetDirectoryName(assemblyLocation), String.Concat(IOManager.GetFileNameWithoutExtension(assemblyLocation), ".xml")); + static string GetDocumentationFilePath(string assemblyLocation) => IOManager.ConcatPath(IOManager.GetDirectoryName(assemblyLocation), String.Concat(IOManager.GetFileNameWithoutExtension(assemblyLocation), ".xml")); var assemblyDocumentationPath = GetDocumentationFilePath(typeof(Application).Assembly.Location); var apiDocumentationPath = GetDocumentationFilePath(typeof(ApiHeaders).Assembly.Location); services.AddSwaggerGen(genOptions => SwaggerConfiguration.Configure(genOptions, assemblyDocumentationPath, apiDocumentationPath));