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:
@ -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
|
||||
|
Reference in New Issue
Block a user