forked from mirror/go-json
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 {
|
||||
LOOP:
|
||||
if isWhiteSpace[buf[cursor]] {
|
||||
for isWhiteSpace[buf[cursor]] {
|
||||
cursor++
|
||||
goto LOOP
|
||||
}
|
||||
return cursor
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue