gexp: Slightly simplify 'lower-inputs'.
authorLudovic Courtès <ludo@gnu.org>
Sat, 28 Mar 2015 17:24:03 +0000 (18:24 +0100)
committerLudovic Courtès <ludo@gnu.org>
Sun, 29 Mar 2015 20:23:33 +0000 (22:23 +0200)
* guix/gexp.scm (lower-inputs): Simplify first case by removing the
  'input' binding.

guix/gexp.scm

index 2492974..de8b7bb 100644 (file)
@@ -204,12 +204,12 @@ the cross-compilation target triplet."
   (with-monad %store-monad
     (sequence %store-monad
               (map (match-lambda
-                    ((and ((? struct? thing) sub-drv ...) input)
-                     (mlet* %store-monad ((lower -> (lookup-compiler thing))
-                                          (drv (lower thing system target)))
-                       (return `(,drv ,@sub-drv))))
-                    (input
-                     (return input)))
+                     (((? struct? thing) sub-drv ...)
+                      (mlet* %store-monad ((lower -> (lookup-compiler thing))
+                                           (drv (lower thing system target)))
+                        (return `(,drv ,@sub-drv))))
+                     (input
+                      (return input)))
                    inputs))))
 
 (define* (lower-reference-graphs graphs #:key system target)