From db2fa40ad313e36088d907574594a75e90377959 Mon Sep 17 00:00:00 2001 From: Peter van 't Hof <p.j.van_t_hof@lumc.nl> Date: Mon, 13 Apr 2015 16:36:17 +0200 Subject: [PATCH] Fix code style --- .../scala/nl/lumc/sasc/biopet/tools/SamplesTsvToJson.scala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/tools/SamplesTsvToJson.scala b/public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/tools/SamplesTsvToJson.scala index bf3955b5e..8898fa8fb 100644 --- a/public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/tools/SamplesTsvToJson.scala +++ b/public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/tools/SamplesTsvToJson.scala @@ -53,8 +53,10 @@ object SamplesTsvToJson extends ToolCommand { val values = tsvLine.split("\t") val sample = values(sampleColumn) val library = if (libraryColumn != -1) values(libraryColumn) else null - val valuesMap = (for (t <- 0 until values.size; - if !values(t).isEmpty && t != sampleColumn && t != libraryColumn) yield (header(t) -> values(t))).toMap + val valuesMap = (for ( + t <- 0 until values.size; + if !values(t).isEmpty && t != sampleColumn && t != libraryColumn + ) yield (header(t) -> values(t))).toMap val map: Map[String, Any] = if (library != null) { Map("samples" -> Map(sample -> Map("libraries" -> Map(library -> valuesMap)))) } else { -- GitLab