Skip to content

Commit

Permalink
Remove erroneous contract from ensureNotNullOrAccumulate
Browse files Browse the repository at this point in the history
  • Loading branch information
kyay10 committed Nov 15, 2024
1 parent b490817 commit 3279876
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,6 @@ public open class RaiseAccumulate<Error>(

@ExperimentalRaiseAccumulateApi
public fun <B: Any> ensureNotNullOrAccumulate(value: B?, raise: () -> Error) {
contract { returns() implies (value != null) }
ensureOrAccumulate(value != null, raise)
}

Expand Down

0 comments on commit 3279876

Please sign in to comment.