From b3da2df103d0f2e3c7df19c4fb9340d0e5ded39d Mon Sep 17 00:00:00 2001
From: Peter van 't Hof <p.j.van_t_hof@lumc.nl>
Date: Tue, 13 Oct 2015 16:34:36 +0200
Subject: [PATCH] Fix MatchError

---
 .../nl/lumc/sasc/biopet/core/summary/WriteSummary.scala    | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/public/biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/summary/WriteSummary.scala b/public/biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/summary/WriteSummary.scala
index 8f2ef7e50..7b8f34ecb 100644
--- a/public/biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/summary/WriteSummary.scala
+++ b/public/biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/summary/WriteSummary.scala
@@ -91,8 +91,11 @@ class WriteSummary(val root: Configurable) extends InProcessFunction with Config
 
         (
           qscript.functions.flatMap(fetchVersion(_)) ++
-          qscript.functions.flatMap { case f: BiopetCommandLineFunction => f.pipesJobs }
-          .flatMap(fetchVersion(_))
+          qscript.functions
+          .flatMap {
+            case f: BiopetCommandLineFunction => f.pipesJobs
+            case _                            => Nil
+          }.flatMap(fetchVersion(_))
         ).toMap
       }
 
-- 
GitLab