From: David ‘Bombe’ Roden Date: Thu, 5 Oct 2017 19:00:10 +0000 (+0200) Subject: Specify return type explicitely to avoid faulty inferring X-Git-Tag: 0.9.7^2~24 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=7cb7c8616e8504cfccde43926f7dbc97fafef277;p=Sone.git Specify return type explicitely to avoid faulty inferring --- diff --git a/src/main/kotlin/net/pterodactylus/sone/web/ajax/LoggedInJsonPage.kt b/src/main/kotlin/net/pterodactylus/sone/web/ajax/LoggedInJsonPage.kt index acf1d73..5cdee64 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/ajax/LoggedInJsonPage.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/ajax/LoggedInJsonPage.kt @@ -14,7 +14,7 @@ open class LoggedInJsonPage(path: String, webInterface: WebInterface) : JsonPage final override fun createJsonObject(request: FreenetRequest) = createJsonObject(getCurrentSone(request.toadletContext)!!, request) - open protected fun createJsonObject(currentSone: Sone, request: FreenetRequest) = + open protected fun createJsonObject(currentSone: Sone, request: FreenetRequest): JsonReturnObject = createErrorJsonObject("not-implemented") }