mirror of https://github.com/sbt/sbt.git
remove spurious unchecked warning
This commit is contained in:
parent
aea757ed18
commit
15abc87c45
|
|
@ -140,10 +140,11 @@ object ClasspathProject
|
||||||
}
|
}
|
||||||
|
|
||||||
def parseSimpleConfigurations(confString: String): Map[String, String] =
|
def parseSimpleConfigurations(confString: String): Map[String, String] =
|
||||||
confString.split(";").map(
|
confString.split(";").map( conf =>
|
||||||
_.split("->",2).toList.map(_.trim) match {
|
conf.split("->",2).toList.map(_.trim) match {
|
||||||
case x :: Nil => (x,x)
|
case x :: Nil => (x,x)
|
||||||
case x :: y :: Nil => (x,y)
|
case x :: y :: Nil => (x,y)
|
||||||
|
case _ => error("Invalid configuration '" + conf + "'") // shouldn't get here
|
||||||
}
|
}
|
||||||
).toMap
|
).toMap
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue