Skip to content

Commit e527058

Browse files
committed
styling
1 parent 3dcf8ec commit e527058

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/Microsoft.ComponentDetection.Common/DependencyGraph/DependencyGraph.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ internal class DependencyGraph : IDependencyGraph
1717
{
1818
private static readonly CompositeFormat MissingNodeFormat = CompositeFormat.Parse(Resources.MissingNodeInDependencyGraph);
1919

20-
private readonly bool enableManualTrackingOfExplicitReferences;
21-
2220
private readonly ConcurrentDictionary<string, ComponentRefNode> componentNodes;
2321

22+
private readonly bool enableManualTrackingOfExplicitReferences;
23+
2424
public DependencyGraph(bool enableManualTrackingOfExplicitReferences)
2525
{
2626
this.componentNodes = new ConcurrentDictionary<string, ComponentRefNode>();

src/Microsoft.ComponentDetection.Orchestrator/Services/GraphTranslation/DefaultGraphTranslationService.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,8 @@ private IEnumerable<DetectedComponent> GatherSetOfDetectedComponentsUnmerged(IEn
124124
}
125125
}
126126

127-
var relevantDependencyGraphs = dependencyGraphsByLocation.Where(x => x.Value.Contains(component.Component.Id));
128-
129127
// Information about each component is relative to all of the graphs it is present in, so we take all graphs containing a given component and apply the graph data.
130-
foreach (var graphKvp in relevantDependencyGraphs)
128+
foreach (var graphKvp in dependencyGraphsByLocation.Where(x => x.Value.Contains(component.Component.Id)))
131129
{
132130
var location = graphKvp.Key;
133131
var dependencyGraph = graphKvp.Value;

0 commit comments

Comments
 (0)