guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

06/07: gexp: Slightly simplify 'gexp-inputs'.


From: Ludovic Courtès
Subject: 06/07: gexp: Slightly simplify 'gexp-inputs'.
Date: Mon, 19 Dec 2016 16:53:08 +0000 (UTC)

civodul pushed a commit to branch master
in repository guix.

commit d343a60f93cecb789f3366bac1f068f281c38d9f
Author: Ludovic Courtès <address@hidden>
Date:   Mon Dec 19 17:13:21 2016 +0100

    gexp: Slightly simplify 'gexp-inputs'.
    
    * guix/gexp.scm (gexp-inputs)[add-reference-inputs]: Remove unneeded
    'if' in the non-native nested gexp case.
---
 guix/gexp.scm |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/guix/gexp.scm b/guix/gexp.scm
index 5021688..6f63afe 100644
--- a/guix/gexp.scm
+++ b/guix/gexp.scm
@@ -669,11 +669,8 @@ references; otherwise, return only non-native references."
                    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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]