aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-04-03 16:52:07 +0200
committerRobert Jaros <rjaros@finn.pl>2018-04-03 16:52:07 +0200
commit447a1e59796c42e1c274ea23eb6afc410d624611 (patch)
tree1da5cb7db6bd70a8fc61af7fd6fb57061e765f7e /src
parentc856526af892440add3fc955032974bc3b67ad4e (diff)
downloadkvision-447a1e59796c42e1c274ea23eb6afc410d624611.tar.gz
kvision-447a1e59796c42e1c274ea23eb6afc410d624611.tar.bz2
kvision-447a1e59796c42e1c274ea23eb6afc410d624611.zip
Style fix
Diffstat (limited to 'src')
-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 cf3c2e07..5ae9a601 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(): String = suspendCancellableCoroutine<String> { cont ->
+suspend fun File.getContent(): String = suspendCancellableCoroutine { cont ->
val reader = FileReader()
reader.onload = {
@Suppress("UnsafeCastFromDynamic")