We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f04c034 commit 71180f2Copy full SHA for 71180f2
codepropertygraph/src/main/scala/io/shiftleft/codepropertygraph/cpgloading/ProtoCpgLoader.scala
@@ -43,9 +43,7 @@ object ProtoCpgLoader {
43
val cpg = openOrCreateCpg(storagePath)
44
45
// first pass: add the raw nodes without any properties or edges
46
- protoCpgs().foreach { cpgProto =>
47
- addNodesRaw(nodesIter(cpgProto), cpg.graph, protoToGraphNodeMappings)
48
- }
+ addNodesRaw(protoCpgs().flatMap(cpgProto => nodesIter(cpgProto)), cpg.graph, protoToGraphNodeMappings)
49
50
// second pass: set node properties and add edges
51
val diffGraph = Cpg.newDiffGraphBuilder
0 commit comments