Skip to content

Commit 315f2ba

Browse files
committed
refactor: remove null checks for existing record and data in ProcessExistingRecord method
1 parent 118d506 commit 315f2ba

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

libraries/src/AWS.Lambda.Powertools.Idempotency/Persistence/BasePersistenceStore.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -390,16 +390,6 @@ private static string GetHash(HashAlgorithm hashAlgorithm, string input)
390390
/// </summary>
391391
public virtual DataRecord ProcessExistingRecord(DataRecord exRecord, JsonDocument data)
392392
{
393-
if (exRecord == null)
394-
{
395-
throw new ArgumentNullException(nameof(exRecord), "Existing record cannot be null");
396-
}
397-
398-
if (data == null)
399-
{
400-
throw new ArgumentNullException(nameof(data), "Data cannot be null");
401-
}
402-
403393
ValidatePayload(data, exRecord);
404394
SaveToCache(exRecord);
405395
return exRecord;

0 commit comments

Comments
 (0)