Revert "fix(source.loginUI): filter null when arrays end with comma"

Gson will throw error when json has extra comma in array or object. see 3dbd9ba3fe

This reverts commit 767d7e718f.
This commit is contained in:
Xwite
2025-02-15 15:40:28 +08:00
parent 2977a5692a
commit f54f77c675
@@ -67,7 +67,7 @@ interface BaseSource : JsExtensions {
fun loginUi(): List<RowUi>? {
return GSON.fromJsonArray<RowUi>(loginUi).onFailure {
it.printOnDebug()
}.getOrNull()?.filterNotNull() // filter null, see https://github.com/gedoor/legado/discussions/4650
}.getOrNull()
}
fun getLoginJs(): String? {
@@ -253,4 +253,4 @@ interface BaseSource : JsExtensions {
fun getShareScope(): Scriptable? {
return SharedJsScope.getScope(jsLib)
}
}
}