File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
insight/src/main/kotlin/spp/jetbrains/insight/pass/artifact Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 1616 */
1717package spp.jetbrains.insight.pass.artifact
1818
19- import org.jetbrains.kotlin.utils.addToStdlib.ifNotEmpty
2019import spp.jetbrains.artifact.model.ArtifactElement
2120import spp.jetbrains.artifact.model.CallArtifact
2221import spp.jetbrains.insight.InsightKeys
@@ -41,7 +40,7 @@ class CallDurationPass : ArtifactPass {
4140 // artifact has already been analyzed, use pre-determined duration (if available)
4241 val duration = multiPath.mapNotNull {
4342 it.getInsights().find { it.type == PATH_DURATION }?.value as Long?
44- }.ifNotEmpty { sum() }
43+ }.ifEmpty { null }?. sum()
4544 if (duration != null ) {
4645 element.putUserData(
4746 InsightKeys .FUNCTION_DURATION .asPsiKey(),
You can’t perform that action at this time.
0 commit comments