File tree Expand file tree Collapse file tree
Microsoft.ComponentDetection.Common/DependencyGraph
Microsoft.ComponentDetection.Orchestrator/Services/GraphTranslation Expand file tree Collapse file tree Original file line number Diff line number Diff 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 > ( ) ;
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments