CopiedHoldIds: the copied.Length == 0 early-out is deleted; an empty copy runs the loop zero times
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
e118f0995f
commit
fa90c6cc1e
1 changed files with 1 additions and 1 deletions
|
|
@ -4280,7 +4280,7 @@ namespace GameCult.Caching
|
|||
// order, so the decode runs only where it can change the answer.
|
||||
private bool CopiedHoldIds(Durable? durable, CultPersistedRecord[] copied, IReadOnlyCollection<CultStagedRecord> upserts)
|
||||
{
|
||||
if (durable == null || copied.Length == 0 ||
|
||||
if (durable == null ||
|
||||
string.Equals(durable.Snapshot.FormatVersion, CultPersistedStoreSnapshot.FormatV3, StringComparison.Ordinal) ||
|
||||
upserts.Any(staged => staged.HoldsIds == true) ||
|
||||
AttachedRegistry is not { } registry)
|
||||
|
|
|
|||
Loading…
Reference in a new issue