Skip to content

Commit 3482a74

Browse files
committed
Keep code in sync
1 parent baf33f8 commit 3482a74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

FubarDev.UnitOfWork/UnitOfWorkFactory.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,10 @@ public ValueTask<IUnitOfWork<TRepository>> CreateAsync(
7171
? currentStatusItem.Repository
7272
: _repositoryManager.Create();
7373

74+
var isNewRepository = currentStatusItem == null;
7475
var newStatusItem = new UnitOfWorkStatusItem<TRepository>(
7576
repository,
76-
currentStatusItem == null,
77+
isNewRepository,
7778
saveChangesOnDispose,
7879
currentStatusItem?.InheritedTransaction);
7980
_statusManager.Add(newStatusItem);

0 commit comments

Comments
 (0)