projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use a property for “needsFormPassword” instead of a method
[Sone.git]
/
src
/
main
/
kotlin
/
net
/
pterodactylus
/
sone
/
web
/
ajax
/
GetStatusAjaxPage.kt
diff --git
a/src/main/kotlin/net/pterodactylus/sone/web/ajax/GetStatusAjaxPage.kt
b/src/main/kotlin/net/pterodactylus/sone/web/ajax/GetStatusAjaxPage.kt
index
696c65a
..
925f628
100644
(file)
--- a/
src/main/kotlin/net/pterodactylus/sone/web/ajax/GetStatusAjaxPage.kt
+++ b/
src/main/kotlin/net/pterodactylus/sone/web/ajax/GetStatusAjaxPage.kt
@@
-49,7
+49,7
@@
class GetStatusAjaxPage(webInterface: WebInterface, private val elementLoader: E
private fun String.asJson() = ObjectMapper().readTree(this).asIterable()
- override
fun needsFormPassword()
= false
+ override
val needsFormPassword
= false
override fun requiresLogin() = false
private fun SoneOptions.toJsonOptions() = jsonObject {