Skip to content

Commit

Permalink
style: remove excessive variable in BuilderCombinator<B>.use
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Sitnikov committed Jun 7, 2024
1 parent 949f472 commit f9e59eb
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ import java.util.function.BiFunction
@API(status = API.Status.EXPERIMENTAL, since = "1.6.0")
fun <B, T> BuilderCombinator<B>.use(arbitrary: Arbitrary<T>, combinator: (B, T) -> B): BuilderCombinator<B>
where B : Any {
val toFunction = BiFunction<B, T, B> { b, t -> combinator(b, t) }
return this.use(arbitrary).`in`(toFunction)
return this.use(arbitrary).`in`(combinator)
}

0 comments on commit f9e59eb

Please sign in to comment.