mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
entc/gen: add missing braces in mutation template (#1014)
This commit is contained in:
@@ -72,7 +72,7 @@ var _ ent.Mutation = (*{{ $mutation }})(nil)
|
||||
// {{ $mutationOption }} allows to manage the mutation configuration using functional options.
|
||||
type {{ $mutationOption }} func(*{{ $mutation }})
|
||||
|
||||
// new{{ $mutation }} creates new mutation for $n.Name.
|
||||
// new{{ $mutation }} creates new mutation for {{ $n.Name }}.
|
||||
func new{{ $mutation }}(c config, op Op, opts ...{{ $mutationOption }}) *{{ $mutation }} {
|
||||
m := &{{ $mutation }}{
|
||||
config: c,
|
||||
|
||||
Reference in New Issue
Block a user