mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
vlib: replace all goto
statements with labelled break (#8531)
This commit is contained in:
parent
7ec116d588
commit
82482167ce
4 changed files with 16 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue