From: David ‘Bombe’ Roden Date: Thu, 17 Nov 2016 18:04:18 +0000 (+0100) Subject: Remove unnecessary cast X-Git-Tag: 0.9.7^2~431 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=b6dd51ccc612b13e13ac02968d6d396c7c5f0a9c;p=Sone.git Remove unnecessary cast --- diff --git a/src/main/kotlin/net/pterodactylus/sone/template/ParserFilter.kt b/src/main/kotlin/net/pterodactylus/sone/template/ParserFilter.kt index 4d2f9c1..e389652 100644 --- a/src/main/kotlin/net/pterodactylus/sone/template/ParserFilter.kt +++ b/src/main/kotlin/net/pterodactylus/sone/template/ParserFilter.kt @@ -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) }