mirror of https://github.com/goccy/go-json.git
Merge pull request #212 from IncSW/tiny-refactoring
remove unnecessary goto
This commit is contained in:
commit
46bdba4a65
|
@ -20,10 +20,8 @@ func char(ptr unsafe.Pointer, offset int64) byte {
|
||||||
}
|
}
|
||||||
|
|
||||||
func skipWhiteSpace(buf []byte, cursor int64) int64 {
|
func skipWhiteSpace(buf []byte, cursor int64) int64 {
|
||||||
LOOP:
|
for isWhiteSpace[buf[cursor]] {
|
||||||
if isWhiteSpace[buf[cursor]] {
|
|
||||||
cursor++
|
cursor++
|
||||||
goto LOOP
|
|
||||||
}
|
}
|
||||||
return cursor
|
return cursor
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue