Skip to content

Commit

Permalink
fix compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
mschuwalow committed Mar 11, 2024
1 parent ea82649 commit 07f0173
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zio-profiling/src/main/scala/zio/profiling/CostCenter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ sealed trait CostCenter { self =>
}

final def isChildOf(other: CostCenter): Boolean = self == other || (self match {
case Root => false
case Child(parent, current) => parent == other || parent.isChildOf(other)
case Root => false
case Child(parent, _) => parent.isChildOf(other)
})

/**
Expand Down

0 comments on commit 07f0173

Please sign in to comment.