libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit 263bb6c11e51dfe11958d853e2478bda94ced7d4
parent f6a3cedd9a0a1237331eb70a380557d4c1a57f6a
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Fri, 24 Jan 2020 16:33:19 +0100

address warnings

Diffstat:
Msandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt | 1-
Mutil/src/main/kotlin/XmlCombinators.kt | 2+-
2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt @@ -281,7 +281,6 @@ private fun constructCamtResponse(type: Int, customerId: Int, header: EbicsReque private fun ApplicationCall.handleEbicsC52(header: EbicsRequest.Header): ByteArray { val userId = header.static.userID!! - val od = header.static.orderDetails ?: throw Exception("Need 'OrderDetails'") val subscriber = transaction { EbicsSubscriberEntity.find { diff --git a/util/src/main/kotlin/XmlCombinators.kt b/util/src/main/kotlin/XmlCombinators.kt @@ -84,7 +84,7 @@ fun constructXml(indent: Boolean = false, f: XmlDocumentBuilder.() -> Unit): Str class XmlDocumentDestructor { } -fun <T>destructXml(input: String, f: XmlDocumentDestructor.() -> T): T { +fun <T>destructXml(f: XmlDocumentDestructor.() -> T): T { val d = XmlDocumentDestructor() return f(d) }