mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-26 14:37:44 +01:00
Address a VS message
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user