Skip to content

Commit 7c800dd

Browse files
committed
Removed shortcut
1 parent 365b786 commit 7c800dd

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/NHibernate/Cache/QueryCacheResultBuilder.cs

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,19 @@ internal QueryCacheResultBuilder(Loader.Loader loader)
2727
_resultTypes = loader.ResultTypes;
2828
_cacheTypes = loader.CacheTypes;
2929

30-
if (loader.EntityFetches == null)
30+
if (loader.EntityFetches != null)
3131
{
32-
return;
33-
}
34-
35-
for (var i = 0; i < loader.EntityFetches.Length; i++)
36-
{
37-
if (loader.EntityFetches[i])
32+
for (var i = 0; i < loader.EntityFetches.Length; i++)
3833
{
39-
_entityFetchIndexes.Add(i);
34+
if (loader.EntityFetches[i])
35+
{
36+
_entityFetchIndexes.Add(i);
37+
}
4038
}
39+
40+
_hasFetches = _entityFetchIndexes.Count > 0;
4141
}
4242

43-
_hasFetches = _entityFetchIndexes.Count > 0;
4443
if (loader.CollectionFetches == null)
4544
{
4645
return;

0 commit comments

Comments
 (0)