Misc bulletproofing

This commit is contained in:
Łukasz Domeradzki
2025-04-14 09:17:52 +02:00
parent d20fa79897
commit 96e5924c0c
2 changed files with 4 additions and 2 deletions

View File

@@ -208,7 +208,7 @@ public sealed class ArchiHandler : ClientMsgHandler, IDisposable {
count = itemsCountPerRequest
};
if (language != null) {
if (!string.IsNullOrEmpty(language)) {
request.language = language;
}

View File

@@ -259,7 +259,9 @@ public sealed class ArchiWebHandler : IDisposable {
throw new InvalidOperationException(nameof(ASF.InventorySemaphore));
}
language ??= "english";
if (string.IsNullOrEmpty(language)) {
language = "english";
}
ulong startAssetID = 0;