Revert "json.== handles nil now"

This commit is contained in:
Varriount 2014-07-24 18:06:30 -04:00
commit f67b9bcc82

View file

@ -621,13 +621,9 @@ proc `%`*(elements: openArray[PJsonNode]): PJsonNode =
proc `==`* (a,b: PJsonNode): bool =
## Check two nodes for equality
if a.isNil:
if b.isNil: return true
return false
elif b.isNil or a.kind != b.kind:
return false
if a.kind != b.kind: false
else:
return case a.kind
case a.kind
of JString:
a.str == b.str
of JInt: