mirror of
https://github.com/ent/ent.git
synced 2026-05-22 09:31:45 +03:00
entc/gen: add missing braces in mutation template (#1014)
This commit is contained in:
@@ -56,7 +56,7 @@ var _ ent.Mutation = (*CarMutation)(nil)
|
||||
// carOption allows to manage the mutation configuration using functional options.
|
||||
type carOption func(*CarMutation)
|
||||
|
||||
// newCarMutation creates new mutation for $n.Name.
|
||||
// newCarMutation creates new mutation for Car.
|
||||
func newCarMutation(c config, op Op, opts ...carOption) *CarMutation {
|
||||
m := &CarMutation{
|
||||
config: c,
|
||||
@@ -474,7 +474,7 @@ var _ ent.Mutation = (*GroupMutation)(nil)
|
||||
// groupOption allows to manage the mutation configuration using functional options.
|
||||
type groupOption func(*GroupMutation)
|
||||
|
||||
// newGroupMutation creates new mutation for $n.Name.
|
||||
// newGroupMutation creates new mutation for Group.
|
||||
func newGroupMutation(c config, op Op, opts ...groupOption) *GroupMutation {
|
||||
m := &GroupMutation{
|
||||
config: c,
|
||||
@@ -865,7 +865,7 @@ var _ ent.Mutation = (*UserMutation)(nil)
|
||||
// userOption allows to manage the mutation configuration using functional options.
|
||||
type userOption func(*UserMutation)
|
||||
|
||||
// newUserMutation creates new mutation for $n.Name.
|
||||
// newUserMutation creates new mutation for User.
|
||||
func newUserMutation(c config, op Op, opts ...userOption) *UserMutation {
|
||||
m := &UserMutation{
|
||||
config: c,
|
||||
|
||||
Reference in New Issue
Block a user