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

builtin: remove unneeded casts

This commit is contained in:
Alexander Medvednikov
2020-02-05 11:22:17 +01:00
parent efaca5974c
commit 06b5f43e48
2 changed files with 10 additions and 9 deletions

View File

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