Skip to content

Commit

Permalink
Use checkNotNull
Browse files Browse the repository at this point in the history
  • Loading branch information
leandro-godon committed Mar 14, 2024
1 parent eea3f54 commit 2120e6f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ internal class FakeLogRecordData : LogRecordData {
}

override fun getTimestampEpochNanos(): Long {
return testLog.timeUnixNano!!
return checkNotNull(testLog.timeUnixNano)
}

override fun getObservedTimestampEpochNanos(): Long {
return testLog.timeUnixNano!!
return checkNotNull(testLog.timeUnixNano)
}

override fun getSpanContext(): SpanContext {
Expand Down Expand Up @@ -56,6 +56,6 @@ internal class FakeLogRecordData : LogRecordData {
}

override fun getTotalAttributeCount(): Int {
return testLog.attributes!!.size
return checkNotNull(testLog.attributes?.size)
}
}

0 comments on commit 2120e6f

Please sign in to comment.