swh: Adjust for Guile-JSON 4.0 null handling.
* guix/swh.scm (string*): Add clause for 'null.
parent
e3e757edf9
commit
cc6dd2981c
|
@ -174,7 +174,8 @@ Software Heritage."
|
||||||
;; Converts "string or #nil" coming from JSON to "string or #f".
|
;; Converts "string or #nil" coming from JSON to "string or #f".
|
||||||
(match-lambda
|
(match-lambda
|
||||||
((? string? str) str)
|
((? string? str) str)
|
||||||
((? null?) #f)))
|
((? null?) #f) ;Guile-JSON 3.x
|
||||||
|
('null #f))) ;Guile-JSON 4.x
|
||||||
|
|
||||||
(define %allow-request?
|
(define %allow-request?
|
||||||
;; Takes a URL and method (e.g., the 'http-get' procedure) and returns true
|
;; Takes a URL and method (e.g., the 'http-get' procedure) and returns true
|
||||||
|
|
Reference in New Issue