Unverified Commit cf9fa72a authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

fix non-exhaustive matching error in id retrieval

Signed-off-by: Sebastian Schüpbach's avatarSebastian Schüpbach <sebastian.schuepbach@unibas.ch>
parent 19959b64
Pipeline #14092 passed with stages
in 10 minutes and 44 seconds
......@@ -102,6 +102,7 @@ object KafkaTopologyUtils extends Logging {
.scanLeft((None: Option[String], None: Option[String]))((x, y) => y match {
case s if s.startsWith("https://memobase.ch/record/") => (Some(s), x._2)
case s if s.startsWith("https://memobase.ch/digital/") => (x._1, Some(s))
case _ => (x._1, x._2)
.collectFirst {
case (Some(s), Some(t)) => (s, t)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment