mirror of
https://github.com/Instadapp/chains.git
synced 2024-07-29 22:37:19 +00:00
Use isBlank() instead of isEmpty()
This commit is contained in:
parent
5c9c26a7e8
commit
b542d3745c
|
@ -410,7 +410,7 @@ fun checkChain(chainFile: File, connectRPC: Boolean, verbose: Boolean = false) {
|
||||||
(jsonObject["rpc"] as List<*>).forEach {
|
(jsonObject["rpc"] as List<*>).forEach {
|
||||||
if (it !is String) {
|
if (it !is String) {
|
||||||
throw (RPCMustBeListOfStrings())
|
throw (RPCMustBeListOfStrings())
|
||||||
} else if (it.isEmpty()) {
|
} else if (it.isBlank()) {
|
||||||
throw (RPCCannotBeEmpty())
|
throw (RPCCannotBeEmpty())
|
||||||
} else {
|
} else {
|
||||||
if (connectRPC) {
|
if (connectRPC) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user