Use a property for “requiresLogin” instead of a method
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / web / ajax / GetStatusAjaxPage.kt
index 925f628..acb8cec 100644 (file)
@@ -50,7 +50,7 @@ class GetStatusAjaxPage(webInterface: WebInterface, private val elementLoader: E
        private fun String.asJson() = ObjectMapper().readTree(this).asIterable()
 
        override val needsFormPassword = false
-       override fun requiresLogin() = false
+       override val requiresLogin = false
 
        private fun SoneOptions.toJsonOptions() = jsonObject {
                put("ShowNotification/NewSones", isShowNewSoneNotifications)