services: configuration: simplify alist? procedure.

* gnu/services/configuration.scm (alist?): simplify procedure.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
Bruno Victal 2023-01-25 16:38:51 +00:00 committed by Maxim Cournoyer
parent a586c3996e
commit eba81e68ac
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -440,10 +440,7 @@ (define list-of-strings?
(list-of string?)) (list-of string?))
(define alist? (define alist?
(match-lambda (list-of pair?))
(() #t)
((head . tail) (and (pair? head) (alist? tail)))
(_ #f)))
(define serialize-file-like empty-serializer) (define serialize-file-like empty-serializer)