Remove unused variable and type redundancy (#2996)

This commit is contained in:
Marwan Sulaiman
2022-10-08 17:59:52 -04:00
committed by GitHub
parent a8dde5e0d1
commit 713828b311
63 changed files with 250 additions and 256 deletions

View File

@@ -222,7 +222,7 @@ func (c *CardClient) GetX(ctx context.Context, id int) *Card {
// QueryOwner queries the owner edge of a Card.
func (c *CardClient) QueryOwner(ca *Card) *UserQuery {
query := &UserQuery{config: c.config}
query.path = func(ctx context.Context) (fromV *sql.Selector, _ error) {
query.path = func(context.Context) (fromV *sql.Selector, _ error) {
id := ca.ID
step := sqlgraph.NewStep(
sqlgraph.From(card.Table, card.FieldID, id),
@@ -328,7 +328,7 @@ func (c *UserClient) GetX(ctx context.Context, id int) *User {
// QueryCard queries the card edge of a User.
func (c *UserClient) QueryCard(u *User) *CardQuery {
query := &CardQuery{config: c.config}
query.path = func(ctx context.Context) (fromV *sql.Selector, _ error) {
query.path = func(context.Context) (fromV *sql.Selector, _ error) {
id := u.ID
step := sqlgraph.NewStep(
sqlgraph.From(user.Table, user.FieldID, id),