swh: Adjust for Guile-JSON 4.0 null handling.

* guix/swh.scm (string*): Add clause for 'null.
This commit is contained in:
Ludovic Courtès 2020-06-30 00:15:35 +02:00
parent e3e757edf9
commit cc6dd2981c
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -174,7 +174,8 @@ (define string*
;; 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