fix: Check if key exists instead of trying to match on null

Co-Authored-By: Ryan Liptak <squeek502@hotmail.com>
This commit is contained in:
Henry Kupty 2025-09-25 23:33:45 +02:00 committed by Ryan Liptak
parent a0ec5d1c6e
commit 83f8441c4f

View file

@ -118,7 +118,7 @@ pub fn main() !void {
switch (entry.kind) {
.directory => {
switch (walker.depth()) {
1 => if (def_dirs.get(entry.basename)) {
1 => if (def_dirs.has(entry.basename)) {
try walker.enter(entry);
continue;
},