Reduce declared but not used warning

This commit is contained in:
jangko 2023-12-29 12:34:39 +07:00
parent 547604004d
commit 6417b7656b
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
1 changed files with 2 additions and 0 deletions

View File

@ -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]) =