mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
entc/gen: remove space around continue for 1.18 compatible (#2962)
Related: https://github.com/golang/go/issues/51670 Signed-off-by: Giau. Tran Minh <hello@giautm.dev> Signed-off-by: Giau. Tran Minh <hello@giautm.dev>
This commit is contained in:
@@ -66,7 +66,7 @@ in the LICENSE file in the root directory of this source tree.
|
||||
{{ range $e := $.EdgesWithID }}
|
||||
{{ if and $updater $e.Immutable }}
|
||||
{{/* Skip to the next one as immutable edges cannot be updated. */}}
|
||||
{{ continue }}
|
||||
{{continue}}
|
||||
{{ end }}
|
||||
{{ $op := "add" }}{{ $idsFunc := $e.MutationAdd }}{{ if $e.Unique }}{{ $op = "set" }}{{ $idsFunc = $e.MutationSet }}{{ end }}
|
||||
{{/* Check if this setter was already defined by the field-setters (e.g. edge-field with the same name). */}}
|
||||
|
||||
@@ -270,7 +270,7 @@ func ({{ $receiver }} *{{ $onebuilder }}) ExecX(ctx context.Context) {
|
||||
{{ range $e := $.EdgesWithID }}
|
||||
{{ if $e.Immutable }}
|
||||
{{/* Skip to the next one as immutable edges cannot be updated. */}}
|
||||
{{ continue }}
|
||||
{{continue}}
|
||||
{{ end }}
|
||||
{{ $func := $e.MutationClear }}
|
||||
// {{ $func }} clears {{ if $e.Unique }}the "{{ $e.Name }}" edge{{ else }}all "{{ $e.Name }}" edges{{ end }} to the {{ $e.Type.Name }} entity.
|
||||
|
||||
@@ -129,7 +129,7 @@ func ({{ $receiver }} *{{ $builder }}) sqlSave(ctx context.Context) ({{ $ret }}
|
||||
{{- range $e := $.EdgesWithID }}
|
||||
{{- if $e.Immutable }}
|
||||
{{- /* Skip to the next one as immutable edges cannot be updated. */}}
|
||||
{{- continue }}
|
||||
{{- continue}}
|
||||
{{- end }}
|
||||
if {{ $mutation }}.{{ $e.MutationCleared }}() {
|
||||
{{- with extend $ "Edge" $e }}
|
||||
|
||||
Reference in New Issue
Block a user