substitute: Remove unneeded conditionals.
* guix/scripts/substitute.scm (guix-substitute): Remove unneeded (if cache ...) forms since CACHE is always true (it's a promise.)master
parent
b57ec5f6cd
commit
e4e099feca
|
@ -800,9 +800,7 @@ substituter disabled~%")
|
||||||
(("have" paths ..1)
|
(("have" paths ..1)
|
||||||
;; Return the subset of PATHS available in CACHE.
|
;; Return the subset of PATHS available in CACHE.
|
||||||
(let ((substitutable
|
(let ((substitutable
|
||||||
(if cache
|
(lookup-narinfos cache paths)))
|
||||||
(lookup-narinfos cache paths)
|
|
||||||
'())))
|
|
||||||
(for-each (lambda (narinfo)
|
(for-each (lambda (narinfo)
|
||||||
(format #t "~a~%" (narinfo-path narinfo)))
|
(format #t "~a~%" (narinfo-path narinfo)))
|
||||||
(filter valid? substitutable))
|
(filter valid? substitutable))
|
||||||
|
@ -810,9 +808,7 @@ substituter disabled~%")
|
||||||
(("info" paths ..1)
|
(("info" paths ..1)
|
||||||
;; Reply info about PATHS if it's in CACHE.
|
;; Reply info about PATHS if it's in CACHE.
|
||||||
(let ((substitutable
|
(let ((substitutable
|
||||||
(if cache
|
(lookup-narinfos cache paths)))
|
||||||
(lookup-narinfos cache paths)
|
|
||||||
'())))
|
|
||||||
(for-each (lambda (narinfo)
|
(for-each (lambda (narinfo)
|
||||||
(format #t "~a\n~a\n~a\n"
|
(format #t "~a\n~a\n~a\n"
|
||||||
(narinfo-path narinfo)
|
(narinfo-path narinfo)
|
||||||
|
|
Reference in New Issue