Skip to content
Snippets Groups Projects
Commit 36d7c931 authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

database: Adjust style of 'assqx-ref'.

* src/cuirass/database.scm (db-get-builds)[assqx-ref]: Rewrite with
'match'.
parent 5ddd4b97
No related branches found
No related tags found
No related merge requests found
......@@ -373,12 +373,13 @@ FILTERS is an assoc list which possible keys are 'project | 'jobset | 'job |
;; XXX Change caller and remove
(define (assqx-ref filters key)
(if (null? filters)
#f
(match (car filters)
((xkey xvalue) (if (eq? key xkey)
xvalue
(assqx-ref (cdr filters) key))))))
(match filters
(()
#f)
(((xkey xvalue) rest ...)
(if (eq? key xkey)
xvalue
(assqx-ref rest key)))))
(define (format-output name path)
`(,name . ((#:path . ,path))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment