swh: Adjust for Guile-JSON 4.0 null handling.
authorLudovic Courtès <ludo@gnu.org>
Mon, 29 Jun 2020 22:15:35 +0000 (00:15 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 29 Jun 2020 22:18:28 +0000 (00:18 +0200)
* guix/swh.scm (string*): Add clause for 'null.

guix/swh.scm

index ec744fe..913f0d1 100644 (file)
@@ -174,7 +174,8 @@ Software Heritage."
   ;; Converts "string or #nil" coming from JSON to "string or #f".
   (match-lambda
     ((? string? str) str)
-    ((? null?) #f)))
+    ((? null?) #f)                                ;Guile-JSON 3.x
+    ('null #f)))                                  ;Guile-JSON 4.x
 
 (define %allow-request?
   ;; Takes a URL and method (e.g., the 'http-get' procedure) and returns true