Skip to content

Commit 44364f7

Browse files
committed
works at compile time
1 parent 25b6f8e commit 44364f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jsony.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ proc dumpHook*(s: var string, v: object) =
770770
# Normal objects.
771771
for k, e in v.fieldPairs:
772772
when compiles(skipHook(type(v), k)):
773-
if skipHook(type(v), k):
773+
when skipHook(type(v), k):
774774
discard
775775
else:
776776
if i > 0:

0 commit comments

Comments
 (0)