Open alexandear opened 1 year ago
The PR refactors hasGraphQLName and isGraphQLFragment internal functions to accept parameters which are really used.
hasGraphQLName
isGraphQLFragment
This was found by running gocritic linter:
gocritic check -enableAll ./... ./internal/jsonutil/graphql.go:271:21: hugeParam: f is heavy (97 bytes); consider passing it by pointer ./internal/jsonutil/graphql.go:292:24: hugeParam: f is heavy (97 bytes); consider passing it by pointer
The PR refactors
hasGraphQLName
andisGraphQLFragment
internal functions to accept parameters which are really used.This was found by running gocritic linter: