produce less garbage in ArtifactBridge IDEA-345621

GitOrigin-RevId: 5d3b39093b68d47c92765f55f8513c148baa3da5
This commit is contained in:
Dmitry Batkovich
2024-02-09 13:52:24 +01:00
committed by intellij-monorepo-bot
parent b1a766997d
commit c83d01a78c

View File

@@ -85,7 +85,7 @@ open class ArtifactBridge(
// and not supposed to be) and the name of the artifact is modified directly in diff. However, we assume that this case isn't possible.
val artifactId: ArtifactId
get() {
val symbolicId = (entityStorage.base.artifactsMap.getEntities(this@ArtifactBridge).singleOrNull() as? ArtifactEntity)?.symbolicId
val symbolicId = (entityStorage.base.artifactsMap.getFirstEntity(this@ArtifactBridge) as? ArtifactEntity)?.symbolicId
if (symbolicId != null) {
artifactIdRaw = symbolicId
}