From 847b1265da861b6cbfd71bcfd8411b3d3492efad Mon Sep 17 00:00:00 2001
From: Wai Yi Leung <w.y.leung@lumc.nl>
Date: Fri, 13 May 2016 10:05:14 +0200
Subject: [PATCH] Remove empty constructs

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

diff --git a/flexiprep/src/main/scala/nl/lumc/sasc/biopet/pipelines/flexiprep/Cutadapt.scala b/flexiprep/src/main/scala/nl/lumc/sasc/biopet/pipelines/flexiprep/Cutadapt.scala
index ea328d973..54d80126b 100644
--- a/flexiprep/src/main/scala/nl/lumc/sasc/biopet/pipelines/flexiprep/Cutadapt.scala
+++ b/flexiprep/src/main/scala/nl/lumc/sasc/biopet/pipelines/flexiprep/Cutadapt.scala
@@ -38,7 +38,7 @@ class Cutadapt(root: Configurable, fastqc: Fastqc) extends nl.lumc.sasc.biopet.e
       (fastqc.foundAdapters ++ customAdapters)
         .map(adapter => adapter.seq -> adapter.name).toMap
     } else {
-      Map.empty ++ customAdapters.map(adapter => adapter.seq -> adapter.name).toMap
+      customAdapters.map(adapter => adapter.seq -> adapter.name).toMap
     }
   }
 
diff --git a/flexiprep/src/main/scala/nl/lumc/sasc/biopet/pipelines/flexiprep/QcCommand.scala b/flexiprep/src/main/scala/nl/lumc/sasc/biopet/pipelines/flexiprep/QcCommand.scala
index e43c4e93e..2e9a1fa19 100644
--- a/flexiprep/src/main/scala/nl/lumc/sasc/biopet/pipelines/flexiprep/QcCommand.scala
+++ b/flexiprep/src/main/scala/nl/lumc/sasc/biopet/pipelines/flexiprep/QcCommand.scala
@@ -107,7 +107,7 @@ class QcCommand(val root: Configurable, val fastqc: Fastqc) extends BiopetComman
       val foundAdapters = if (!cutadapt.ignoreFastqcAdapters) {
         fastqc.foundAdapters.map(_.seq) ++ cutadapt.customAdapters.map(_.seq)
       } else {
-        Seq.empty ++ cutadapt.customAdapters.map(_.seq)
+        cutadapt.customAdapters.map(_.seq)
       }
 
       if (foundAdapters.nonEmpty) {
-- 
GitLab