Skip to content

Commit 5b563f5

Browse files
committed
Code cleanup & format
1 parent 5043ea4 commit 5b563f5

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/NHibernate/Loader/JoinWalker.cs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ protected void WalkCollectionTree(IQueryableCollection persister, string alias)
327327

328328
protected void ProcessJoins()
329329
{
330-
while(joinQueue.Count > 0)
330+
while (joinQueue.Count > 0)
331331
{
332332
QueueEntry entry = joinQueue.Dequeue();
333333
entry.Walk(this);
@@ -341,7 +341,7 @@ private void WalkCollectionTree(IQueryableCollection persister, string alias, st
341341
{
342342
if (persister.IsOneToMany)
343343
{
344-
WalkEntityTree((IOuterJoinLoadable)persister.ElementPersister, alias, path);
344+
WalkEntityTree((IOuterJoinLoadable) persister.ElementPersister, alias, path);
345345
}
346346
else
347347
{
@@ -775,15 +775,13 @@ protected virtual string GenerateRootAlias(string description)
775775
/// </summary>
776776
protected virtual bool IsDuplicateAssociation(string foreignKeyTable, string[] foreignKeyColumns)
777777
{
778-
bool detectFetchLoops = Factory.Settings.DetectFetchLoops;
779-
780-
if (detectFetchLoops)
778+
if (!Factory.Settings.DetectFetchLoops)
781779
{
782-
var associationKey = new AssociationKey(foreignKeyColumns, foreignKeyTable);
783-
return !visitedAssociationKeys.Add(associationKey);
780+
return false;
784781
}
785782

786-
return false;
783+
AssociationKey associationKey = new AssociationKey(foreignKeyColumns, foreignKeyTable);
784+
return !visitedAssociationKeys.Add(associationKey);
787785
}
788786

789787
/// <summary>

0 commit comments

Comments
 (0)