guix-commits
[Top][All Lists]
Advanced

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

07/08: swh: Adjust for Guile-JSON 4.0 null handling.


From: guix-commits
Subject: 07/08: swh: Adjust for Guile-JSON 4.0 null handling.
Date: Mon, 29 Jun 2020 18:19:18 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit cc6dd2981c7e81a3a1750821ba53e63a7a4bc8e9
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Tue Jun 30 00:15:35 2020 +0200

    swh: Adjust for Guile-JSON 4.0 null handling.
    
    * guix/swh.scm (string*): Add clause for 'null.
---
 guix/swh.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/guix/swh.scm b/guix/swh.scm
index ec744fe..913f0d1 100644
--- a/guix/swh.scm
+++ b/guix/swh.scm
@@ -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



reply via email to

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