Skip to content

Commit 1f689a9

Browse files
Adjust naming
1 parent 7de2885 commit 1f689a9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/NHibernate/Action/EntityInsertAction.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ public override void Execute()
4444

4545
bool veto = PreInsert();
4646

47-
var isDelayed = false;
47+
var wasDelayed = false;
4848
// Don't need to lock the cache here, since if someone
4949
// else inserted the same pk first, the insert would fail
5050
if (!veto)
5151
{
5252
if (id is DelayedPostInsertIdentifier delayed && delayed.ActualId != null)
5353
{
54-
isDelayed = true;
54+
wasDelayed = true;
5555
id = delayed.ActualId;
5656
}
5757
persister.Insert(id, State, instance, Session);
@@ -63,7 +63,7 @@ public override void Execute()
6363
}
6464

6565
entry.PostInsert();
66-
if (isDelayed)
66+
if (wasDelayed)
6767
{
6868
Session.PersistenceContext.ReplaceDelayedEntityIdentityInsertKeys(entry.EntityKey, id);
6969
}

src/NHibernate/Async/Action/EntityInsertAction.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ public override async Task ExecuteAsync(CancellationToken cancellationToken)
4040

4141
bool veto = await (PreInsertAsync(cancellationToken)).ConfigureAwait(false);
4242

43-
var isDelayed = false;
43+
var wasDelayed = false;
4444
// Don't need to lock the cache here, since if someone
4545
// else inserted the same pk first, the insert would fail
4646
if (!veto)
4747
{
4848
if (id is DelayedPostInsertIdentifier delayed && delayed.ActualId != null)
4949
{
50-
isDelayed = true;
50+
wasDelayed = true;
5151
id = delayed.ActualId;
5252
}
5353
await (persister.InsertAsync(id, State, instance, Session, cancellationToken)).ConfigureAwait(false);
@@ -59,7 +59,7 @@ public override async Task ExecuteAsync(CancellationToken cancellationToken)
5959
}
6060

6161
entry.PostInsert();
62-
if (isDelayed)
62+
if (wasDelayed)
6363
{
6464
Session.PersistenceContext.ReplaceDelayedEntityIdentityInsertKeys(entry.EntityKey, id);
6565
}

0 commit comments

Comments
 (0)