From 4035fec784fc7e0109d2f8a3d3bbfb5696512de1 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 15 Aug 2021 18:13:56 +0100 Subject: Add more uses of `or_return` --- core/path/filepath/match.odin | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'core/path/filepath') 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)); } -- cgit v1.2.3