remove unnecessary string conversion

This commit is contained in:
Dustin Brody 2022-06-09 09:39:58 +00:00
parent 5034fef8d0
commit d8a4c2c0ba
No known key found for this signature in database
GPG Key ID: 3D7A11A0156519DC
1 changed files with 1 additions and 1 deletions

View File

@ -593,7 +593,7 @@ proc readValue*[T](r: var JsonReader, value: var T)
r.skipSingleJsValue() r.skipSingleJsValue()
else: else:
const typeName = typetraits.name(T) const typeName = typetraits.name(T)
r.raiseUnexpectedField(r.lexer.strVal, string typeName) r.raiseUnexpectedField(r.lexer.strVal, typeName)
if r.lexer.lazyTok == tkComma: if r.lexer.lazyTok == tkComma:
r.lexer.next() r.lexer.next()
else: else: