From b575801983ff3afc381276c8249f7b628340596f Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Mon, 19 Feb 2024 11:42:04 +0300 Subject: [PATCH] Replace `branch` data builder with `putAll` --- .../space/kscience/dataforge/data/dataSetBuilderInContext.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dataforge-data/src/jvmMain/kotlin/space/kscience/dataforge/data/dataSetBuilderInContext.kt b/dataforge-data/src/jvmMain/kotlin/space/kscience/dataforge/data/dataSetBuilderInContext.kt index 6055a5fa..44602c53 100644 --- a/dataforge-data/src/jvmMain/kotlin/space/kscience/dataforge/data/dataSetBuilderInContext.kt +++ b/dataforge-data/src/jvmMain/kotlin/space/kscience/dataforge/data/dataSetBuilderInContext.kt @@ -15,7 +15,7 @@ public infix fun String.put(data: Data): Unit = */ context(DataSink) public infix fun String.put(dataSet: DataTree): Unit = - this.putAll(this, dataSet) + putAll(this, dataSet) /** * Build and append node @@ -23,5 +23,5 @@ public infix fun String.put(dataSet: DataTree): Unit = context(DataSink) public infix fun String.put( block: DataSink.() -> Unit, -): Unit = this.putAll(Name.parse(this), block) +): Unit = putAll(Name.parse(this), block)