From 7ebe97184d70028a96a643dd64b9e56f06e8bf98 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sun, 19 Apr 2020 00:27:05 +0200 Subject: Small fix for observable models builder functions --- src/main/kotlin/pl/treksoft/kvision/state/ObservableList.kt | 2 +- src/main/kotlin/pl/treksoft/kvision/state/ObservableSet.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/kotlin/pl/treksoft/kvision') diff --git a/src/main/kotlin/pl/treksoft/kvision/state/ObservableList.kt b/src/main/kotlin/pl/treksoft/kvision/state/ObservableList.kt index 44e115eb..f6b2d692 100644 --- a/src/main/kotlin/pl/treksoft/kvision/state/ObservableList.kt +++ b/src/main/kotlin/pl/treksoft/kvision/state/ObservableList.kt @@ -216,4 +216,4 @@ class ObservableListWrapper(val mutableList: MutableList = mutableListOf() /** * Creates an instance of ObservableList */ -fun observableListOf(vararg items: T) = ObservableListWrapper(items.toMutableList()) +fun observableListOf(vararg items: T): ObservableList = ObservableListWrapper(items.toMutableList()) diff --git a/src/main/kotlin/pl/treksoft/kvision/state/ObservableSet.kt b/src/main/kotlin/pl/treksoft/kvision/state/ObservableSet.kt index f7b2f8cd..e472ddce 100644 --- a/src/main/kotlin/pl/treksoft/kvision/state/ObservableSet.kt +++ b/src/main/kotlin/pl/treksoft/kvision/state/ObservableSet.kt @@ -122,4 +122,4 @@ class ObservableSetWrapper(val mutableSet: MutableSet = mutableSetOf()) : /** * Creates an instance of ObservableSet */ -fun observableSetOf(vararg items: T) = ObservableSetWrapper(items.toMutableSet()) +fun observableSetOf(vararg items: T): ObservableSet = ObservableSetWrapper(items.toMutableSet()) -- cgit