diff --git a/src/Tgstation.Server.Api/Routes.cs b/src/Tgstation.Server.Api/Routes.cs index 20b52be7ab..ece56b6876 100644 --- a/src/Tgstation.Server.Api/Routes.cs +++ b/src/Tgstation.Server.Api/Routes.cs @@ -124,8 +124,7 @@ namespace Tgstation.Server.Api /// The sanitized path. 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;