mirror of https://github.com/goccy/go-json.git
style: gofmt
This commit is contained in:
parent
ae9148555a
commit
e8637832dd
|
@ -247,7 +247,7 @@ func stringBytes(s *Stream) ([]byte, error) {
|
|||
}
|
||||
goto ERROR
|
||||
}
|
||||
r, size := utf8.DecodeRune(s.buf[cursor:])
|
||||
r, size := utf8.DecodeRune(s.buf[cursor:])
|
||||
if r == utf8.RuneError {
|
||||
s.buf = append(append(append([]byte{}, s.buf[:cursor]...), runeErrBytes...), s.buf[cursor+1:]...)
|
||||
cursor += runeErrBytesLen
|
||||
|
|
|
@ -512,7 +512,7 @@ func TestLongUTF8(t *testing.T) {
|
|||
t.Fatalf("Unexpected error: %v", err)
|
||||
}
|
||||
if got != want {
|
||||
t.Errorf("string %q; want = %q", got, want)
|
||||
t.Errorf("string %q; want = %q", got, want)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue