Add more uses of or_return
This commit is contained in:
1 parent
b071a07c86
commit
4035fec784
6 files changed
+41
-127
No files matched your search
@@ -298,10 +298,7 @@ _glob :: proc(dir, pattern: string, matches: ^[dynamic]string) -> (m: [dynamic]s
|
||||
|
||||
for fi in fis {
|
||||
n := fi.name;
|
||||
matched, err := match(pattern, n);
|
||||
if err != nil {
|
||||
return m, err;
|
||||
}
|
||||
matched := match(pattern, n) or_return;
|
||||
if matched {
|
||||
append(&m, join(dir, n));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user