Merge pull request #212 from IncSW/tiny-refactoring

remove unnecessary goto
This commit is contained in:
Masaaki Goshima 2021-05-06 13:10:12 +09:00 committed by GitHub
commit 46bdba4a65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -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
}