Skip to content

Commit

Permalink
Use exhaustive match for JSONValue.value (#571)
Browse files Browse the repository at this point in the history
  • Loading branch information
xerial authored Aug 2, 2019
1 parent 8335c39 commit f138d74
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ object JSON extends LogSupport {
val JSONTrue = JSONBoolean(true)
val JSONFalse = JSONBoolean(false)

trait JSONNumber extends JSONValue
sealed trait JSONNumber extends JSONValue
final case class JSONDouble(v: Double) extends JSONNumber {
override def toJSON: String = v.toString
}
Expand Down

0 comments on commit f138d74

Please sign in to comment.