aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/state/ObservableSet.kt
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2020-04-19 00:27:05 +0200
committerRobert Jaros <rjaros@finn.pl>2020-04-19 00:27:05 +0200
commit7ebe97184d70028a96a643dd64b9e56f06e8bf98 (patch)
treee4998f4c415fd24d533603e76db8e9e601d4f332 /src/main/kotlin/pl/treksoft/kvision/state/ObservableSet.kt
parent20a84bde5aa8813001493d069ecf1f0aea517347 (diff)
downloadkvision-7ebe97184d70028a96a643dd64b9e56f06e8bf98.tar.gz
kvision-7ebe97184d70028a96a643dd64b9e56f06e8bf98.tar.bz2
kvision-7ebe97184d70028a96a643dd64b9e56f06e8bf98.zip
Small fix for observable models builder functions
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/state/ObservableSet.kt')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/state/ObservableSet.kt2
1 files changed, 1 insertions, 1 deletions
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<T>(val mutableSet: MutableSet<T> = mutableSetOf()) :
/**
* Creates an instance of ObservableSet<T>
*/
-fun <T> observableSetOf(vararg items: T) = ObservableSetWrapper(items.toMutableSet())
+fun <T> observableSetOf(vararg items: T): ObservableSet<T> = ObservableSetWrapper(items.toMutableSet())