Minor cleanup

This commit is contained in:
Chomp
2025-05-28 17:05:19 +01:00
parent a7412384cd
commit 7f82fdbe1f
2 changed files with 5 additions and 11 deletions
@@ -59,22 +59,16 @@ public class RagfairHelper(
if (!string.IsNullOrEmpty(request.LinkedSearchId))
{
var data = ragfairLinkedItemService.GetLinkedItems(request.LinkedSearchId);
result = data == null ? [] : [..data];
result = [..data];
}
// Case: category
if (!string.IsNullOrEmpty(request.HandbookId))
{
var handbook = GetCategoryList(request.HandbookId);
if (result.Count != null && result.Count > 0)
{
result = utilityHelper.ArrayIntersect(result, handbook);
}
else
{
result = handbook;
}
result = result?.Count > 0
? utilityHelper.ArrayIntersect(result, handbook)
: handbook;
}
return result;
@@ -346,7 +346,7 @@ public class RagfairOfferHelper(
bool playerIsFleaBanned = false)
{
var offerRootItem = offer.Items[0];
/** Currency offer is sold for */
// Currency offer is sold for
var moneyTypeTpl = offer.Requirements[0].Template;
var isTraderOffer = _databaseService.GetTraders().ContainsKey(offer.User.Id);