src/Pure/General/json_api.scala
changeset 78592 fdfe9b91d96e
parent 77368 7c57d9586f4c
child 79044 8cc1ae43e12e
--- a/src/Pure/General/json_api.scala	Tue Aug 29 12:04:13 2023 +0200
+++ b/src/Pure/General/json_api.scala	Tue Aug 29 12:53:28 2023 +0200
@@ -69,7 +69,7 @@
   sealed case class Links(json: JSON.T) {
     def get_next: Option[Service] =
       for {
-        JSON.Value.String(next) <- JSON.value(json, "next")
+        case JSON.Value.String(next) <- JSON.value(json, "next")
         if Url.is_wellformed(next)
       } yield new Service(Url(next))