mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-19 13:00:28 +00:00
Add more uses of or_return
This commit is contained in:
@@ -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