x.json2: cleanup comments (#22595)

This commit is contained in:
Hitalo Souza 2024-10-20 07:36:56 -04:00 committed by GitHub
parent e85905ddc5
commit 14ca0f533f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View File

@ -749,7 +749,6 @@ fn (mut decoder Decoder) decode_value[T](mut val T) ! {
// get_value_kind returns the kind of a JSON value.
fn get_value_kind(value u8) ValueKind {
// value := *val
if value == u8(`"`) {
return .string_
} else if value == u8(`t`) || value == u8(`f`) {

View File

@ -146,7 +146,7 @@ fn (e &Encoder) encode_map[T](value T, level int, mut buf []u8) ! {
}
idx++
}
// e.encode_newline(level, mut buf)!
e.encode_newline(level - 1, mut buf)!
buf << curly_close_rune
}