From f67b9bcc82b85d07031fbd65a70c2a1f2439e6e9 Mon Sep 17 00:00:00 2001 From: Varriount Date: Thu, 24 Jul 2014 18:06:30 -0400 Subject: [PATCH] Revert "json.== handles nil now" --- lib/pure/json.nim | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/pure/json.nim b/lib/pure/json.nim index a45900f29..508e564c5 100644 --- a/lib/pure/json.nim +++ b/lib/pure/json.nim @@ -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: