Skip to content

Commit e463ff5

Browse files
committed
refactor(mps-model-adapters): improve readability for client init
1 parent 7de1fbd commit e463ff5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

bulk-model-sync-gradle/src/main/kotlin/org/modelix/model/sync/bulk/gradle/tasks/ExportFromModelServer.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,12 @@ abstract class ExportFromModelServer @Inject constructor(of: ObjectFactory) : De
6060

6161
@TaskAction
6262
fun export() {
63-
val client = ModelClientV2PlatformSpecificBuilder().url(url.get()).build().apply { runBlocking { init() } }
63+
val client = ModelClientV2PlatformSpecificBuilder()
64+
.url(url.get())
65+
.build()
66+
67+
runBlocking { client.init() }
68+
6469
val branch = if (revision.isPresent) {
6570
getBranchByRevision(client)
6671
} else {

0 commit comments

Comments
 (0)