mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
gexp: Slightly simplify 'gexp-inputs'.
* guix/gexp.scm (gexp-inputs)[add-reference-inputs]: Remove unneeded 'if' in the non-native nested gexp case.
This commit is contained in:
parent
5b14a7902c
commit
d343a60f93
1 changed files with 2 additions and 5 deletions
|
@ -669,11 +669,8 @@ (define (add-reference-inputs ref result)
|
|||
result)
|
||||
result))
|
||||
(($ <gexp-input> (? gexp? exp) _ #f)
|
||||
(if native?
|
||||
(append (gexp-inputs exp #:native? #t)
|
||||
result)
|
||||
(append (gexp-inputs exp)
|
||||
result)))
|
||||
(append (gexp-inputs exp #:native? native?)
|
||||
result))
|
||||
(($ <gexp-input> (? string? str))
|
||||
(if (direct-store-path? str)
|
||||
(cons `(,str) result)
|
||||
|
|
Loading…
Reference in a new issue