Skip to content

Commit c0e0d55

Browse files
committed
Remove redundant code changes
1 parent 827cb44 commit c0e0d55

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/NHibernate/Async/Engine/BatchFetchQueue.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,7 @@ public async Task<object[]> GetCollectionBatchAsync(ICollectionPersister collect
6868
return keys; //the first key found after the given key
6969
}
7070

71-
var isEqual = collectionPersister.KeyType.IsEqual(
72-
id,
73-
ce.LoadedKey,
74-
collectionPersister.Factory
75-
);
71+
bool isEqual = collectionPersister.KeyType.IsEqual(id, ce.LoadedKey, collectionPersister.Factory);
7672

7773
if (isEqual)
7874
{

src/NHibernate/Engine/BatchFetchQueue.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,7 @@ public object[] GetCollectionBatch(ICollectionPersister collectionPersister, obj
214214
return keys; //the first key found after the given key
215215
}
216216

217-
var isEqual = collectionPersister.KeyType.IsEqual(
218-
id,
219-
ce.LoadedKey,
220-
collectionPersister.Factory
221-
);
217+
bool isEqual = collectionPersister.KeyType.IsEqual(id, ce.LoadedKey, collectionPersister.Factory);
222218

223219
if (isEqual)
224220
{

0 commit comments

Comments
 (0)