Skip to content

Commit

Permalink
fix nits
Browse files Browse the repository at this point in the history
  • Loading branch information
igaryo0506 committed Dec 23, 2024
1 parent c698679 commit 291997c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions clientgenv2/source_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ func NewStructGenerator(responseFieldList ResponseFieldList) *StructGenerator {
}

preMergedStructSources := make([]*StructSource, 0)
postMergedStructSources := make([]*StructSource, 0)

for _, field := range responseFieldList {
if field.IsFragmentSpread {
Expand All @@ -114,7 +113,7 @@ func NewStructGenerator(responseFieldList ResponseFieldList) *StructGenerator {
}
}

currentFields, preMergedStructSources, postMergedStructSources = mergeFieldsRecursively(currentFields, fragmentChildrenFields, preMergedStructSources, postMergedStructSources)
currentFields, preMergedStructSources, postMergedStructSources := mergeFieldsRecursively(currentFields, fragmentChildrenFields, preMergedStructSources, nil)
return &StructGenerator{
currentResponseFieldList: currentFields,
preMergedStructSources: preMergedStructSources,
Expand Down

0 comments on commit 291997c

Please sign in to comment.