You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my project, staticcheck -tests ./... results in 90 such failures:
ent/gql_collection.go:228:2: this value of path is never used (SA4006)
ent/gql_collection.go:228:9: this result of append is never used, except maybe in other appends (SA4010)
ent/gql_collection.go:892:2: this value of path is never used (SA4006)
ent/gql_collection.go:892:9: this result of append is never used, except maybe in other appends (SA4010)
ent/gql_collection.go:1655:2: this value of path is never used (SA4006)
ent/gql_collection.go:1655:9: this result of append is never used, except maybe in other appends (SA4010)
ent/gql_collection.go:1769:2: this value of path is never used (SA4006)
ent/gql_collection.go:1769:9: this result of append is never used, except maybe in other appends (SA4010)
ent/gql_collection.go:1893:2: this value of path is never used (SA4006)
ent/gql_collection.go:1893:9: this result of append is never used, except maybe in other appends (SA4010)
ent/gql_collection.go:2037:2: this value of path is never used (SA4006)
ent/gql_collection.go:2037:9: this result of append is never used, except maybe in other appends (SA4010)
[snip]
In my project,
staticcheck -tests ./...
results in 90 such failures:These look like:
In my go.mod:
Current Behavior 😯
*Query.collectField methods all start with a useless statement:
Also, their first parameter, ctx, is unused.
Also, *Query.load* parameter
init
is unused.Also, *Query.sqlQuery parameter
ctx
is unused.Expected Behavior 🤔
Generated code passes staticcheck, and doesn't have unused parameters.
Steps to Reproduce 🕹
Steps:
Your Environment 🌎
The text was updated successfully, but these errors were encountered: