aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cuirass/database.scm13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/cuirass/database.scm b/src/cuirass/database.scm
index 751b8ef..147028e 100644
--- a/src/cuirass/database.scm
+++ b/src/cuirass/database.scm
@@ -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))))