Remove unnecessary cast
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 17 Nov 2016 18:04:18 +0000 (19:04 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 17 Nov 2016 18:04:18 +0000 (19:04 +0100)
src/main/kotlin/net/pterodactylus/sone/template/ParserFilter.kt

index 4d2f9c1..e389652 100644 (file)
@@ -21,7 +21,7 @@ class ParserFilter(private val core: Core, private val soneTextParser: SoneTextP
                        is Sone -> soneParameter
                        else -> null
                }
-               val context = SoneTextParserContext(sone as? Sone)
+               val context = SoneTextParserContext(sone)
                return soneTextParser.parse(text, context)
        }