From 8ef3cd58717eb828fb2a158479ec2ccd54f6fdf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-R=C3=A9mi=20Desjardins?= Date: Fri, 5 Dec 2014 15:37:31 -0800 Subject: [PATCH] Revert accidental style change --- project/Util.scala | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/project/Util.scala b/project/Util.scala index 039e9d298..42a3c7b24 100644 --- a/project/Util.scala +++ b/project/Util.scala @@ -124,15 +124,15 @@ object Util { def cleanPom(pomNode: scala.xml.Node) = { import scala.xml._ - def cleanNodes(nodes: Seq[Node]): Seq[Node] = nodes flatMap ({ - case elem@Elem(prefix, "dependency", attributes, scope, children@_*) if excludePomDependency(elem) => + def cleanNodes(nodes: Seq[Node]): Seq[Node] = nodes flatMap { + case elem @ Elem(prefix, "dependency", attributes, scope, children @ _*) if excludePomDependency(elem) => NodeSeq.Empty - case Elem(prefix, "classifier", attributes, scope, children@_*) => + case Elem(prefix, "classifier", attributes, scope, children @ _*) => NodeSeq.Empty - case Elem(prefix, label, attributes, scope, children@_*) => + case Elem(prefix, label, attributes, scope, children @ _*) => Elem(prefix, label, attributes, scope, cleanNodes(children): _*).theSeq case other => other - }) + } cleanNodes(pomNode.theSeq)(0) }