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

parser: simplify unused vars & add loop/if vars etc

This commit is contained in:
joe-conigliaro
2020-04-27 23:16:31 +10:00
parent e67bf674e3
commit 9f76a7b250
15 changed files with 79 additions and 82 deletions

View File

@@ -1061,7 +1061,7 @@ pub fn walk_ext(path, ext string) []string {
}
mut res := []string{}
separator := if path.ends_with(os.path_separator) { '' } else { os.path_separator }
for i, file in files {
for file in files {
if file.starts_with('.') {
continue
}