From 426da03b5a4e2d715c086e1bfd92b34358ae17ee Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 13 Jul 2019 01:22:56 +0200 Subject: Style fixes. Suppress style warnings. --- .../src/main/kotlin/pl/treksoft/kvision/tabulator/Tabulator.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'kvision-modules/kvision-tabulator/src/main') diff --git a/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Tabulator.kt b/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Tabulator.kt index 47fbe538..290f9f39 100644 --- a/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Tabulator.kt +++ b/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Tabulator.kt @@ -380,7 +380,10 @@ open class Tabulator( open fun applyFilter() { if (filter != null) { jsTabulator?.setFilter({ data: dynamic, _: dynamic -> - filter?.let { it(data) } + filter?.let { + @Suppress("UnsafeCastFromDynamic") + it(data) + } }, null, null) } } -- cgit