aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-04-02 01:24:04 +0200
committerRobert Jaros <rjaros@finn.pl>2018-04-02 01:24:04 +0200
commitc856526af892440add3fc955032974bc3b67ad4e (patch)
tree9d1de68d6dbec6ed683971183310e69f9bc8c805 /src/main/kotlin/pl/treksoft
parentf6ed5e036bb8f8e0731bad0ef9f4d2d6fa85bfb3 (diff)
downloadkvision-c856526af892440add3fc955032974bc3b67ad4e.tar.gz
kvision-c856526af892440add3fc955032974bc3b67ad4e.tar.bz2
kvision-c856526af892440add3fc955032974bc3b67ad4e.zip
Documentation fix.0.0.11
Diffstat (limited to 'src/main/kotlin/pl/treksoft')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/utils/Utils.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/utils/Utils.kt b/src/main/kotlin/pl/treksoft/kvision/utils/Utils.kt
index ba9467c3..cf3c2e07 100644
--- a/src/main/kotlin/pl/treksoft/kvision/utils/Utils.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/utils/Utils.kt
@@ -213,7 +213,7 @@ fun isIE11(): Boolean = window.navigator.userAgent.matches("Trident\\/7\\.")
* @return file content
*/
@Suppress("EXPERIMENTAL_FEATURE_WARNING")
-suspend fun File.getContent() = suspendCancellableCoroutine<String> { cont ->
+suspend fun File.getContent(): String = suspendCancellableCoroutine<String> { cont ->
val reader = FileReader()
reader.onload = {
@Suppress("UnsafeCastFromDynamic")