gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libeufin] 02/02: Prefer ".isEmpty()" over "== 0".


From: gnunet
Subject: [GNUnet-SVN] [libeufin] 02/02: Prefer ".isEmpty()" over "== 0".
Date: Thu, 17 Oct 2019 09:23:46 +0200

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository libeufin.

commit da1303829d90647511e69b75fdbeedf19e5cd01e
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu Oct 17 09:23:25 2019 +0200

    Prefer ".isEmpty()" over "== 0".
---
 sandbox/src/main/kotlin/Main.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sandbox/src/main/kotlin/Main.kt b/sandbox/src/main/kotlin/Main.kt
index fcbf51d..4a11650 100644
--- 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,

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]