From d207b97f9b8fd89b3da070a9b62bccf0710d0626 Mon Sep 17 00:00:00 2001
From: bow <bow@bow.web.id>
Date: Thu, 10 Dec 2015 14:00:53 +0100
Subject: [PATCH] Update None pattern match to use catch-all clause

---
 .../nl/lumc/sasc/biopet/pipelines/flexiprep/Cutadapt.scala    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/public/flexiprep/src/main/scala/nl/lumc/sasc/biopet/pipelines/flexiprep/Cutadapt.scala b/public/flexiprep/src/main/scala/nl/lumc/sasc/biopet/pipelines/flexiprep/Cutadapt.scala
index b2114c725..340d5e098 100644
--- a/public/flexiprep/src/main/scala/nl/lumc/sasc/biopet/pipelines/flexiprep/Cutadapt.scala
+++ b/public/flexiprep/src/main/scala/nl/lumc/sasc/biopet/pipelines/flexiprep/Cutadapt.scala
@@ -48,7 +48,7 @@ class Cutadapt(root: Configurable, fastqc: Fastqc, readName: String) extends nl.
                 case Some(n) => n -> Map("sequence" -> seq, "count" -> count)
                 // adapter sequence is clipped but not found by FastQC ~ should not happen since all clipped adapter
                 // sequences come from FastQC
-                case None =>
+                case _ =>
                   throw new IllegalStateException(s"Adapter '$seq' is clipped but not found by FastQC in 'clipping_$readName'.")
               }
           }.toMap
@@ -58,7 +58,7 @@ class Cutadapt(root: Configurable, fastqc: Fastqc, readName: String) extends nl.
           Map.empty[String, Map[String, Any]]
       }
       // "adapters" key not found ~ something went wrong in our part
-      case None => throw new RuntimeException(s"Required key 'adapters' not found in stats entry 'clipping_$readName'.")
+      case _ => throw new RuntimeException(s"Required key 'adapters' not found in stats entry 'clipping_$readName'.")
     }
     initStats.updated("adapters", adapterCounts)
   }
-- 
GitLab