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:
|
when fieldType isnot JsonVoid:
|
||||||
if writeObjectField(w, value, fieldName, fieldType):
|
if writeObjectField(w, value, fieldName, fieldType):
|
||||||
w.state = AfterField
|
w.state = AfterField
|
||||||
|
else:
|
||||||
|
discard fieldName
|
||||||
w.endRecord()
|
w.endRecord()
|
||||||
|
|
||||||
proc writeNumber*[F,T](w: var JsonWriter[F], value: JsonNumber[T]) =
|
proc writeNumber*[F,T](w: var JsonWriter[F], value: JsonNumber[T]) =
|
||||||
|
|
Loading…
Reference in New Issue