Revert "fix(source.loginUI): filter null when arrays end with comma"
Gson will throw error when json has extra comma in array or object. see8e66c7ed66This reverts commit65d4d7fb62.
This commit is contained in:
@@ -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? {
|
||||
|
||||
Reference in New Issue
Block a user