Address a VS message

This commit is contained in:
Jordan Dominion
2023-11-05 00:23:04 -04:00
parent e7652c2739
commit 0f3fc4a07c
+1 -2
View File
@@ -124,8 +124,7 @@ namespace Tgstation.Server.Api
/// <returns>The sanitized path.</returns>
public static string SanitizeGetPath(string path)
{
if (path == null)
path = String.Empty;
path ??= String.Empty;
if (path.Length == 0 || path[0] != '/')
path = '/' + path;
return path;