Skip to content

Commit

Permalink
Change a misleading operator usage in DataCenterNameTree.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Jul 13, 2024
1 parent 0dd3dd3 commit 9978626
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/formats/Data/Serialization/DataCenterNameTree.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void ConstructTree(DataCenterNode dataNode, DataCenterNameNode nameNode)
var keys = dataNode.Keys;

// There can be keys that refer to attributes that do not exist even in the official data center, so we need
// to explicitly add these attribute names.
// to explicitly add these attribute names first.
if (keys.HasAttributeNames)
foreach (var name in keys.AttributeNames)
nameNode.Attributes[name] = true;
Expand All @@ -42,7 +42,7 @@ void ConstructTree(DataCenterNode dataNode, DataCenterNameNode nameNode)
nameNode.Attributes, name, out var exists);

if (!exists)
isKey |= false;
isKey = false;
}
}

Expand Down

0 comments on commit 9978626

Please sign in to comment.