1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Simplify.

This commit is contained in:
Cedric Beust 2015-12-26 10:23:56 +04:00
parent 9bb42f0d04
commit f34a220ff4

View file

@ -14,10 +14,6 @@ class TestConfig(val project: Project) {
}
@Directive
fun Project.test(init: TestConfig.() -> Unit) : TestConfig {
val result = TestConfig(this)
result.init()
return result
}
fun Project.test(init: TestConfig.() -> Unit) = TestConfig(this).apply { init() }