mirror of
https://github.com/status-im/nim-json-serialization.git
synced 2025-02-19 21:38:09 +00:00
Reduce declared but not used warning
This commit is contained in:
parent
547604004d
commit
6417b7656b
@ -180,6 +180,8 @@ proc writeRecordValue*(w: var JsonWriter, value: auto)
|
||||
when fieldType isnot JsonVoid:
|
||||
if writeObjectField(w, value, fieldName, fieldType):
|
||||
w.state = AfterField
|
||||
else:
|
||||
discard fieldName
|
||||
w.endRecord()
|
||||
|
||||
proc writeNumber*[F,T](w: var JsonWriter[F], value: JsonNumber[T]) =
|
||||
|
Loading…
x
Reference in New Issue
Block a user