Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
oxisto committed Dec 17, 2024
1 parent 2cdbfb8 commit 9a76def
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
package de.fraunhofer.aisec.cpg.graph.concepts

import de.fraunhofer.aisec.cpg.graph.OverlayNode
import org.neo4j.ogm.annotation.Relationship

/**
* Represents a new concept added to the CPG. This is intended for modelling "concepts" like
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ fun TranslationResult.persist() {

val astNodes = this@persist.nodes
val connected = astNodes.flatMap { it.connectedNodes }.toSet()
val nodes = (astNodes + connected + this.additionalNodes).distinct()
val nodes = (astNodes + connected).distinct()

log.info(
"Persisting {} nodes: AST nodes ({}), other nodes ({})",
Expand Down

0 comments on commit 9a76def

Please sign in to comment.