Skip to content

Commit e4678f8

Browse files
committed
Changed IsValidSaveName EndsWith to single char '.' instead of string "."
1 parent a6a879f commit e4678f8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

NitroxServer/Server.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ public static string GetSaveName(string[] args, string defaultValue = "My World"
375375
return IsValidSaveName(result) ? result : defaultValue;
376376
}
377377

378-
private static bool IsValidSaveName([NotNull] string? name)
378+
private static bool IsValidSaveName([NotNullWhen(true)] string? name)
379379
{
380380
if (string.IsNullOrWhiteSpace(name))
381381
{
@@ -385,7 +385,7 @@ private static bool IsValidSaveName([NotNull] string? name)
385385
{
386386
return false;
387387
}
388-
if (name.EndsWith("."))
388+
if (name.EndsWith('.'))
389389
{
390390
return false;
391391
}

0 commit comments

Comments
 (0)