Skip to content

Commit

Permalink
Add explicit return type
Browse files Browse the repository at this point in the history
Co-authored-by: luke <[email protected]>
  • Loading branch information
JoelCourtney and skovati authored Oct 22, 2024
1 parent 2399ccd commit ff0fafd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ operator fun Instant.plus(duration: Duration): Instant = plusMillis(duration / M
operator fun Instant.minus(other: Instant): Duration = microseconds(other.until(this, ChronoUnit.MICROS))

/** Subtracts a duration from an instant, to produce another instant. */
operator fun Instant.minus(duration: Duration) = this.plus(-duration)
operator fun Instant.minus(duration: Duration): Instant = this.plus(-duration)

0 comments on commit ff0fafd

Please sign in to comment.