From cc8198f3e64e763d195ee6f5ba98336a3815b7fc Mon Sep 17 00:00:00 2001 From: Chomp Date: Thu, 10 Apr 2025 13:10:17 +0100 Subject: [PATCH] Flagged method result as nullable --- Libraries/SPTarkov.Server.Core/Services/GiftService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/SPTarkov.Server.Core/Services/GiftService.cs b/Libraries/SPTarkov.Server.Core/Services/GiftService.cs index 00898200..a0a77ab5 100644 --- a/Libraries/SPTarkov.Server.Core/Services/GiftService.cs +++ b/Libraries/SPTarkov.Server.Core/Services/GiftService.cs @@ -33,7 +33,7 @@ public class GiftService( return _giftConfig.Gifts.ContainsKey(giftId); } - public Gift GetGiftById(string giftId) + public Gift? GetGiftById(string giftId) { _giftConfig.Gifts.TryGetValue(giftId, out var gift); @@ -89,7 +89,7 @@ public class GiftService( _logger.Warning($"Gift {giftId} has items but no collection time limit, defaulting to 48 hours"); } - // Handle system messsages + // Handle system messages if (giftData.Sender == GiftSenderType.System) { // Has a localisable text id to send to player