mirror of
https://github.com/vlang/v.git
synced 2025-09-14 23:12:33 +03:00
builtin: remove unneeded casts
This commit is contained in:
parent
efaca5974c
commit
06b5f43e48
2 changed files with 10 additions and 9 deletions
|
@ -469,7 +469,7 @@ pub fn (s string) split_into_lines() []string {
|
|||
mut start := 0
|
||||
for i := 0; i < s.len; i++ {
|
||||
last := i == s.len - 1
|
||||
if int(s[i]) == 10 || last {
|
||||
if s[i] == 10 || last {
|
||||
if last {
|
||||
i++
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue