Compare commits
1 commit
devel
...
revert-128
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f67b9bcc82 |
1 changed files with 2 additions and 6 deletions
|
|
@ -621,13 +621,9 @@ proc `%`*(elements: openArray[PJsonNode]): PJsonNode =
|
||||||
|
|
||||||
proc `==`* (a,b: PJsonNode): bool =
|
proc `==`* (a,b: PJsonNode): bool =
|
||||||
## Check two nodes for equality
|
## Check two nodes for equality
|
||||||
if a.isNil:
|
if a.kind != b.kind: false
|
||||||
if b.isNil: return true
|
|
||||||
return false
|
|
||||||
elif b.isNil or a.kind != b.kind:
|
|
||||||
return false
|
|
||||||
else:
|
else:
|
||||||
return case a.kind
|
case a.kind
|
||||||
of JString:
|
of JString:
|
||||||
a.str == b.str
|
a.str == b.str
|
||||||
of JInt:
|
of JInt:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue