Skip to content

Commit 26b873a

Browse files
committed
no need to save this function within a variable
1 parent 534e7f5 commit 26b873a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/execution/collectFields.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,11 @@ function buildSelectionSetVisitor(
167167
) => void {
168168
const visitedFragmentNames = new Set<string>();
169169

170-
const selectionSetVisitor = (
170+
function selectionSetVisitor(
171171
selectionSet: SelectionSetNode,
172172
deferUsage?: DeferUsage,
173173
fragmentVariableValues?: VariableValues,
174-
): void => {
174+
): void {
175175
for (const selection of selectionSet.selections) {
176176
switch (selection.kind) {
177177
case Kind.FIELD: {
@@ -340,7 +340,7 @@ function buildSelectionSetVisitor(
340340
}
341341
return true;
342342
}
343-
};
343+
}
344344

345345
/**
346346
* Determines if a fragment is applicable to the given type.

0 commit comments

Comments
 (0)