gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: address 'unused variable'


From: gnunet
Subject: [libeufin] branch master updated: address 'unused variable'
Date: Mon, 09 Mar 2020 15:06:07 +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 80a8d0c  address 'unused variable'
80a8d0c is described below

commit 80a8d0cc21c33027a6cf4f0bc2a9cb32b13db139
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Mar 9 15:05:52 2020 +0100

    address 'unused variable'
---
 nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt | 2 +-
 util/src/main/kotlin/Ebics.kt                     | 5 +----
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt 
b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
index 1cbeacf..8d1fef5 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
@@ -944,7 +944,7 @@ fun main() {
                 val subscriberData = getSubscriberDetailsFromId(id)
                 val request = makeEbicsHEVRequest(subscriberData)
                 val response = client.postToBank(subscriberData.ebicsUrl, 
request)
-                val versionDetails = parseEbicsHEVResponse(subscriberData, 
response)
+                val versionDetails = parseEbicsHEVResponse(response)
                 call.respond(
                     HttpStatusCode.OK,
                     EbicsHevResponseJson(versionDetails.versions.map { 
ebicsVersionSpec ->
diff --git a/util/src/main/kotlin/Ebics.kt b/util/src/main/kotlin/Ebics.kt
index 0d0c7c9..4869465 100644
--- a/util/src/main/kotlin/Ebics.kt
+++ b/util/src/main/kotlin/Ebics.kt
@@ -106,9 +106,6 @@ private fun makeOrderParams(orderParams: EbicsOrderParams): 
EbicsRequest.OrderPa
                 }
             }
         }
-        else -> {
-            throw NotImplementedError()
-        }
     }
 }
 
@@ -492,7 +489,7 @@ fun makeEbicsHEVRequest(subscriberDetails: 
EbicsClientSubscriberDetails): String
     return XMLUtil.convertDomToString(doc)
 }
 
-fun parseEbicsHEVResponse(subscriberDetails: EbicsClientSubscriberDetails, 
respStr: String): EbicsHevDetails {
+fun parseEbicsHEVResponse(respStr: String): EbicsHevDetails {
     val resp = try {
         XMLUtil.convertStringToJaxb<HEVResponse>(respStr)
     } catch (e: Exception) {

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



reply via email to

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