Cleanup some formatting/wrapping

This commit is contained in:
Dale Wijnand 2018-12-22 02:22:07 +00:00
parent a254341b6f
commit 6988b2289a
No known key found for this signature in database
GPG Key ID: 4F256E3D151DF5EF
2 changed files with 2 additions and 6 deletions

View File

@ -210,9 +210,7 @@ object Act {
| ((ZeroString ^^^ ParsedZero) <~ sep)
| ((ZeroIdent ^^^ ParsedZero) <~ sep)
| (value(examples(ID, confs, "configuration")) <~ oldSep)
| (value(examples(CapitalizedID, idents, "configuration ident") map {
fromIdent(_)
}) <~ sep)
| (value(examples(CapitalizedID, idents, "configuration ident") map fromIdent) <~ sep)
) ?? Omitted
}

View File

@ -59,9 +59,7 @@ object KeyIndex {
def configs(proj: Option[ResolvedReference]) = concat(_.configs(proj))
private[sbt] def configIdents(proj: Option[ResolvedReference]) = concat(_.configIdents(proj))
private[sbt] def fromConfigIdent(proj: Option[ResolvedReference])(configIdent: String): String =
(indices find { idx =>
idx.exists(proj)
}) match {
indices.find(idx => idx.exists(proj)) match {
case Some(idx) => idx.fromConfigIdent(proj)(configIdent)
case _ => Scope.unguessConfigIdent(configIdent)
}