Skip to content

Commit 8cc1f85

Browse files
committed
fix: avoid nullish coalesce
1 parent 4860e5f commit 8cc1f85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/walker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ export class Walker<TOutput extends Output> {
7171
this.resolveSymlink = resolveSymlink.build(options, this.isSynchronous);
7272
this.walkDirectory = walkDirectory.build(this.isSynchronous);
7373
this.pushPath =
74-
pushPath ??
74+
pushPath ||
7575
((p, arr) => {
7676
arr.push(p);
7777
});
7878
this.pushGroup =
79-
pushGroup ??
79+
pushGroup ||
8080
((group, arr) => {
8181
arr.push(group);
8282
});

0 commit comments

Comments
 (0)