Keep -vet happy

This commit is contained in:
gingerBill
2020-12-14 14:36:45 +00:00
parent aa2562fe7c
commit f6e2d74d10
5 changed files with 11 additions and 12 deletions
+4 -3
View File
@@ -41,7 +41,8 @@ is_abs :: proc(path: string) -> bool {
return false;
}
path := path[l:];
path := path;
path = path[l:];
if path == "" {
return false;
}
@@ -123,8 +124,8 @@ split_list :: proc(path: string, allocator := context.allocator) -> []string {
}
assert(index == count);
for s, i in list {
s, new := strings.replace_all(s, `"`, ``, allocator);
for s0, i in list {
s, new := strings.replace_all(s0, `"`, ``, allocator);
if !new {
s = strings.clone(s, allocator);
}