Use isBlank() instead of isEmpty()

This commit is contained in:
ligi 2022-11-27 03:02:44 +01:00
parent 5c9c26a7e8
commit b542d3745c

View File

@ -410,7 +410,7 @@ fun checkChain(chainFile: File, connectRPC: Boolean, verbose: Boolean = false) {
(jsonObject["rpc"] as List<*>).forEach {
if (it !is String) {
throw (RPCMustBeListOfStrings())
} else if (it.isEmpty()) {
} else if (it.isBlank()) {
throw (RPCCannotBeEmpty())
} else {
if (connectRPC) {