mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
Remove unused variable and type redundancy (#2996)
This commit is contained in:
@@ -215,7 +215,7 @@ func (c *UserClient) GetX(ctx context.Context, id int) *User {
|
||||
// QuerySpouse queries the spouse edge of a User.
|
||||
func (c *UserClient) QuerySpouse(u *User) *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 := u.ID
|
||||
step := sqlgraph.NewStep(
|
||||
sqlgraph.From(user.Table, user.FieldID, id),
|
||||
|
||||
Reference in New Issue
Block a user