chore: use collection expressions for empty grant fallbacks

Replace Array.Empty<T>() with [] in RewardRouterOperations (IDE0301).
pull/182/head
VinPropane 2026-06-17 21:13:29 -04:00
parent f8a36213a1
commit e39622893b
1 changed files with 3 additions and 3 deletions

View File

@ -56,9 +56,9 @@ public static class RewardRouterOperations
return SuccessFromEvent(existingEvent, RewardDeliveryReasonCodes.AlreadyDelivered);
}
var itemGrants = bundle?.ItemGrants ?? Array.Empty<RewardGrantRow>();
var skillGrants = bundle?.SkillXpGrants ?? Array.Empty<QuestSkillXpGrantRow>();
var reputationGrants = bundle?.ReputationGrants ?? Array.Empty<ReputationGrantRow>();
var itemGrants = bundle?.ItemGrants ?? [];
var skillGrants = bundle?.SkillXpGrants ?? [];
var reputationGrants = bundle?.ReputationGrants ?? [];
var idempotencyKey = RewardDeliveryIds.MakeIdempotencyKey(normalizedPlayerId, normalizedQuestId);
if (itemGrants.Count > 0)