mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
Simplify.
This commit is contained in:
parent
9bb42f0d04
commit
f34a220ff4
1 changed files with 1 additions and 5 deletions
|
@ -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() }
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue