aboutsummaryrefslogtreecommitdiff
path: root/core/path
diff options
context:
space:
mode:
Diffstat (limited to 'core/path')
-rw-r--r--core/path/filepath/match.odin5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/path/filepath/match.odin b/core/path/filepath/match.odin
index 1446ceb4d..de65a9d41 100644
--- a/core/path/filepath/match.odin
+++ b/core/path/filepath/match.odin
@@ -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));
}