1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vlib: replace all goto statements with labelled break (#8531)

This commit is contained in:
Nick Treleaven
2021-02-03 14:19:42 +00:00
committed by GitHub
parent 7ec116d588
commit 82482167ce
4 changed files with 16 additions and 18 deletions

View File

@ -32,7 +32,6 @@ fn (mut s Utf8State) seq(r0 bool, r1 bool, is_tail bool) bool {
s.subindex++
return true
}
goto next
} else {
s.failed = true
if is_tail {
@ -42,7 +41,6 @@ fn (mut s Utf8State) seq(r0 bool, r1 bool, is_tail bool) bool {
}
return true
}
next:
s.index++
s.subindex = 0
return false