Skip to content

Commit

Permalink
Cleanup SerializableInstant
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtSilvio committed Mar 2, 2024
1 parent a8c0cf8 commit b5627d2
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,7 @@ internal class OciComponentBundleLayerDescriptorBuilder : Serializable {
}
}

private class SerializableInstant(val epochSecond: Long, val nano: Int) : Serializable {
override fun toString() = toInstant().toString()
}
private class SerializableInstant(val epochSecond: Long, val nano: Int) : Serializable

private fun Instant.toSerializableInstant() = SerializableInstant(epochSecond, nano)

Expand Down

0 comments on commit b5627d2

Please sign in to comment.