commit da1303829d90647511e69b75fdbeedf19e5cd01e
parent 4342e9c79e12e1e51b6fb2458fe9107f3c3454bf
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date: Thu, 17 Oct 2019 09:23:25 +0200
Prefer ".isEmpty()" over "== 0".
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sandbox/src/main/kotlin/Main.kt b/sandbox/src/main/kotlin/Main.kt
@@ -239,7 +239,7 @@ private suspend fun ApplicationCall.ebicsweb() {
* whether it is given _empty_ or not; will check explicitly here. FIXME:
* shall the schema be patched to avoid having this if-block here?
*/
- if (zkey.size == 0) {
+ if (zkey.isEmpty()) {
logger.error("0-length key element given, invalid request")
respondText(
contentType = ContentType.Application.Xml,