Browse files

fixed typo in new boolean format

  • Loading branch information...
1 parent d46478f commit 2c200ed400b35d228622ffbce54b1cdb666f17a7 @rssh committed Dec 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 cli/src/main/resources/scalaxb.scala.template
View
2 cli/src/main/resources/scalaxb.scala.template
@@ -174,7 +174,7 @@ trait XMLStandardTypes {
}
implicit lazy val __BooleanXMLFormat: XMLFormat[Boolean] = new XMLFormat[Boolean] {
- def reads(seq: scala.xml.NodeSeq, stack: List[ElemName]): Either[String, Boolean] = try {
+ def reads(seq: scala.xml.NodeSeq, stack: List[ElemName]): Either[String, Boolean] =
seq.text match {
case "1" | "true" => Right(true)
case "0" | "false" => Right(false)

0 comments on commit 2c200ed

Please sign in to comment.