Skip to content

Commit 89a64ff

Browse files
committed
perf(bulk-model-sync-lib): inline frequently used function
1 parent 38f017f commit 89a64ff

File tree

1 file changed

+1
-1
lines changed
  • bulk-model-sync-lib/src/commonMain/kotlin/org/modelix/model/sync/bulk

1 file changed

+1
-1
lines changed

bulk-model-sync-lib/src/commonMain/kotlin/org/modelix/model/sync/bulk/ModelImporter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class ModelImporter(private val root: INode, private val continueOnError: Boolea
5151
// updated to the constructor with two arguments.
5252
constructor(root: INode) : this(root, false)
5353

54-
private fun doAndPotentiallyContinueOnErrors(block: () -> Unit) {
54+
private inline fun doAndPotentiallyContinueOnErrors(block: () -> Unit) {
5555
try {
5656
block()
5757
} catch (e: Exception) {

0 commit comments

Comments
 (0)