Skip to content

Commit 693c07f

Browse files
committed
fix(walker): filter hook condition tweak
1 parent 69457e6 commit 693c07f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/walker/walker.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ export class Walker extends EventEmitter<WalkerEmitter> {
9191
this.fragment = schemaNode.fragment;
9292
this.depth = initialDepth + 1;
9393

94-
const shouldSkipNode = this.hooks.filter?.(schemaNode);
94+
const isIncluded = this.hooks.filter?.(schemaNode);
9595

96-
if (shouldSkipNode === true) {
96+
if (isIncluded === false) {
9797
super.emit('skipNode', schemaNode);
9898
continue;
9999
}

0 commit comments

Comments
 (0)