Skip to content

Commit 54e1e06

Browse files
committed
save some array allocations
1 parent 56deb05 commit 54e1e06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validation/rules/OverlappingFieldsCanBeMergedRule.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ function findConflictsWithinSelectionSet(
191191
fieldMap,
192192
);
193193

194+
const discoveredFragments: Array<[string, string]> = [];
194195
if (fragmentNames.length !== 0) {
195-
const discoveredFragments: Array<[string, string]> = [];
196196
// (B) Then collect conflicts between these fields and those represented by
197197
// each spread fragment name found.
198198
for (let i = 0; i < fragmentNames.length; i++) {

0 commit comments

Comments
 (0)