Skip to content

Commit 9a0ab5f

Browse files
committed
refactor: remove kotlin plugin import
1 parent 356bf25 commit 9a0ab5f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

insight/src/main/kotlin/spp/jetbrains/insight/pass/artifact/CallDurationPass.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
*/
1717
package spp.jetbrains.insight.pass.artifact
1818

19-
import org.jetbrains.kotlin.utils.addToStdlib.ifNotEmpty
2019
import spp.jetbrains.artifact.model.ArtifactElement
2120
import spp.jetbrains.artifact.model.CallArtifact
2221
import 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(),

0 commit comments

Comments
 (0)