@@ -79,7 +79,7 @@ private[yaml4s] trait SnakeParser extends Parser {
7979 val composer = createComposer(reader)
8080 asScala(composer.getSingleNode)
8181 } match {
82- case Left (err) => Left (ParsingFailure (err.getMessage, err))
82+ case Left (err) => Left (ParsingFailure (err.getMessage, err))
8383 case Right (None ) =>
8484 Left (
8585 ParsingFailure (
@@ -128,8 +128,8 @@ private[yaml4s] trait SnakeParser extends Parser {
128128 case Tag .INT
129129 if node.getValue.startsWith(" 0x" ) || node.getValue.contains(" _" ) =>
130130 flattener.construct(node) match {
131- case int : Integer => w.yint(int)
132- case long : java.lang.Long => w.ylong(long)
131+ case int : Integer => w.yint(int)
132+ case long : java.lang.Long => w.ylong(long)
133133 case bigint : java.math.BigInteger =>
134134 w.ybigdecimal(BigDecimal (bigint))
135135 case other =>
@@ -145,12 +145,12 @@ private[yaml4s] trait SnakeParser extends Parser {
145145 case Tag .BOOL =>
146146 flattener.construct(node) match {
147147 case b : java.lang.Boolean => w.ybool(b)
148- case _ =>
148+ case _ =>
149149 throw new IllegalArgumentException (
150150 s " Invalid boolean string ${node.getValue}"
151151 )
152152 }
153- case Tag .NULL => w.ynull
153+ case Tag .NULL => w.ynull
154154 case CustomTag (other) =>
155155 w.yobject(Seq (other.stripPrefix(" !" ) -> w.ystring(node.getValue)))
156156 case _ => w.ystring(node.getValue)
@@ -161,7 +161,7 @@ private[yaml4s] trait SnakeParser extends Parser {
161161
162162 def convertKeyNode (node : Node ) = node match {
163163 case scalar : ScalarNode => Right (scalar.getValue)
164- case _ =>
164+ case _ =>
165165 Left (
166166 ParsingFailure (" Only string keys can be represented in JSON" , null )
167167 )
0 commit comments