gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: change function name


From: gnunet
Subject: [libeufin] branch master updated: change function name
Date: Thu, 19 Mar 2020 19:13:20 +0100

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

marcello pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new f575e61  change function name
f575e61 is described below

commit f575e615db68461f6533d1af34ba53e46718fb6e
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu Mar 19 19:13:10 2020 +0100

    change function name
---
 nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt | 6 +++---
 util/src/main/kotlin/zip.kt                       | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt 
b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
index 4825728..01e67fc 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
@@ -475,7 +475,7 @@ fun main() {
                     val subscriber = 
EbicsSubscriberEntity.findById(subscriberId) ?: throw NexusError(
                         HttpStatusCode.NotFound, "Subscriber '$subscriberId' 
not found"
                     )
-                    if (accountinfo?.subscriber != subscriber) {
+                    if (accountinfo.subscriber != subscriber) {
                         throw NexusError(HttpStatusCode.BadRequest, "Claimed 
bank account '$acctid' doesn't belong to subscriber '$subscriberId'!")
                     }
                 }
@@ -647,7 +647,7 @@ fun main() {
                 when (response) {
                     is EbicsDownloadSuccessResult -> {
                         call.respondText(
-                            response.orderData.unzip(),
+                            response.orderData.unzipWithLoop(),
                             ContentType.Text.Plain,
                             HttpStatusCode.OK
                         )
@@ -670,7 +670,7 @@ fun main() {
                 when (response) {
                     is EbicsDownloadSuccessResult -> {
                         call.respondText(
-                            unzipOrderData(response.orderData),
+                            response.orderData.unzipWithLoop(),
                             ContentType.Text.Plain,
                             HttpStatusCode.OK
                         )
diff --git a/util/src/main/kotlin/zip.kt b/util/src/main/kotlin/zip.kt
index a5bb3b9..5ea789c 100644
--- a/util/src/main/kotlin/zip.kt
+++ b/util/src/main/kotlin/zip.kt
@@ -25,7 +25,7 @@ fun ByteArray.zip(): ByteArray {
     return baos.toByteArray()
 }
 
-fun ByteArray.unzip(): String {
+fun ByteArray.unzipWithLoop(): String {
     val mem = SeekableInMemoryByteChannel(this)
     val zipFile = ZipFile(mem)
     val s = java.lang.StringBuilder()

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



reply via email to

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