gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: remove always-true test


From: gnunet
Subject: [libeufin] branch master updated: remove always-true test
Date: Mon, 20 Jul 2020 16:18:36 +0200

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

ms pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new a80e09e  remove always-true test
a80e09e is described below

commit a80e09e4156f77bdd6c4c8708136b5dfd9c01c0e
Author: MS <ms@taler.net>
AuthorDate: Mon Jul 20 16:18:30 2020 +0200

    remove always-true test
---
 nexus/src/test/kotlin/Iso20022Test.kt  | 1 -
 util/src/main/kotlin/XmlCombinators.kt | 3 +--
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/nexus/src/test/kotlin/Iso20022Test.kt 
b/nexus/src/test/kotlin/Iso20022Test.kt
index 7447ed1..8caf1b5 100644
--- a/nexus/src/test/kotlin/Iso20022Test.kt
+++ b/nexus/src/test/kotlin/Iso20022Test.kt
@@ -36,7 +36,6 @@ class Iso20022Test {
                 requireOnlyChild {  }
             }
         }
-
     }
     @Test
     fun testTransactionsImport() {
diff --git a/util/src/main/kotlin/XmlCombinators.kt 
b/util/src/main/kotlin/XmlCombinators.kt
index f777ec4..be7b83d 100644
--- a/util/src/main/kotlin/XmlCombinators.kt
+++ b/util/src/main/kotlin/XmlCombinators.kt
@@ -130,8 +130,7 @@ private fun Element.getChildElements(ns: String, tag: 
String): List<Element> {
 class XmlElementDestructor internal constructor(val d: Document, val e: 
Element) {
     fun <T> requireOnlyChild(f: XmlElementDestructor.(e: Element) -> T): T {
         val children = e.getChildElements("*", "*")
-        if (children.size != 1) throw DestructionError("expected singleton 
child tag (2+ found)")
-        if (children[0] == null) throw DestructionError("expected singleton 
child tag (none found)")
+        if (children.size != 1) throw DestructionError("expected singleton 
child tag")
         val destr = XmlElementDestructor(d, children[0])
         return f(destr, children[0])
     }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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