mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
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:
parent
a0ec5d1c6e
commit
83f8441c4f
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue