diff options
| author | gingerBill <bill@gingerbill.org> | 2023-09-30 15:34:39 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-09-30 15:34:39 +0100 |
| commit | 14adcb9db89f4a668210a56d909cdca96088aae2 (patch) | |
| tree | 3f11a5d5ca0dd638387abc60e6cc50a8e1604d0c /core/path/slashpath | |
| parent | 41a22bd83d9458249a60a9d1415f4862f1593b76 (diff) | |
Use `or_break` and `or_continue` where appropriate in the core library
Diffstat (limited to 'core/path/slashpath')
| -rw-r--r-- | core/path/slashpath/match.odin | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/core/path/slashpath/match.odin b/core/path/slashpath/match.odin index 09e774275..15ce174e0 100644 --- a/core/path/slashpath/match.odin +++ b/core/path/slashpath/match.odin @@ -93,10 +93,7 @@ scan_chunk :: proc(pattern: string) -> (star: bool, chunk, rest: string) { case ']': in_range = false case '*': - if !in_range { - break scan_loop - } - + in_range or_break scan_loop } } return star, pattern[:i], pattern[i:] |