Update to a working version of Scalariform
This commit is contained in:
parent
cae070bd93
commit
c66ce62d63
616 changed files with 5966 additions and 5436 deletions
|
|
@ -22,13 +22,13 @@ object LeveldbPersistenceQueryDocSpec {
|
|||
class MyTaggingEventAdapter extends WriteEventAdapter {
|
||||
val colors = Set("green", "black", "blue")
|
||||
override def toJournal(event: Any): Any = event match {
|
||||
case s: String ⇒
|
||||
var tags = colors.foldLeft(Set.empty[String]) { (acc, c) ⇒
|
||||
case s: String =>
|
||||
var tags = colors.foldLeft(Set.empty[String]) { (acc, c) =>
|
||||
if (s.contains(c)) acc + c else acc
|
||||
}
|
||||
if (tags.isEmpty) event
|
||||
else Tagged(event, tags)
|
||||
case _ ⇒ event
|
||||
case _ => event
|
||||
}
|
||||
|
||||
override def manifest(event: Any): String = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue