We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11b15ac commit a15c95cCopy full SHA for a15c95c
src/api/walker.ts
@@ -55,7 +55,7 @@ export class Walker<TOutput extends Output> {
55
symlinks: new Map(),
56
visited: [""].slice(0, 0),
57
controller: new Aborter(),
58
- fs: options.fs ?? nativeFs,
+ fs: options.fs || nativeFs,
59
};
60
61
/*
@@ -71,12 +71,12 @@ export class Walker<TOutput extends Output> {
71
this.resolveSymlink = resolveSymlink.build(options, this.isSynchronous);
72
this.walkDirectory = walkDirectory.build(this.isSynchronous);
73
this.pushPath =
74
- pushPath ??
+ pushPath ||
75
((p, arr) => {
76
arr.push(p);
77
});
78
this.pushGroup =
79
- pushGroup ??
+ pushGroup ||
80
((group, arr) => {
81
arr.push(group);
82
0 commit comments