mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +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
@ -118,7 +118,7 @@ pub fn main() !void {
|
|||||||
switch (entry.kind) {
|
switch (entry.kind) {
|
||||||
.directory => {
|
.directory => {
|
||||||
switch (walker.depth()) {
|
switch (walker.depth()) {
|
||||||
1 => if (def_dirs.get(entry.basename)) {
|
1 => if (def_dirs.has(entry.basename)) {
|
||||||
try walker.enter(entry);
|
try walker.enter(entry);
|
||||||
continue;
|
continue;
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user