mirror of
https://github.com/vlang/v.git
synced 2025-09-12 17:07:11 -04:00
x.json2: cleanup comments (#22595)
This commit is contained in:
parent
e85905ddc5
commit
14ca0f533f
@ -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`) {
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user