Skip to content

Commit

Permalink
reduce unrequired newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchy committed Oct 15, 2024
1 parent ec8415a commit ddc10d2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .codegen/model.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ type {{.PascalName}} struct {
func (newState *{{.PascalName}}) SyncEffectiveFieldsDuringCreateOrUpdate(plan {{.PascalName}}) {
{{- range .Fields -}}
{{- if and .Entity.IsComputed (or .Entity.IsString .Entity.IsBool .Entity.IsInt64 .Entity.IsFloat64 .Entity.IsInt .Entity.Enum) -}}
{{- if not (in $excluded .PascalName) -}}
{{- if not (in $excluded .PascalName)}}
newState.Effective{{.PascalName}} = newState.{{.PascalName}}
newState.{{.PascalName}} = plan.{{.PascalName}}
{{end}}
{{end}}
{{end}}
{{- end}}
{{- end}}
{{- end}}
}

func (newState *{{.PascalName}}) SyncEffectiveFieldsDuringRead(existingState {{.PascalName}}) {
Expand All @@ -56,9 +56,9 @@ func (newState *{{.PascalName}}) SyncEffectiveFieldsDuringRead(existingState {{.
if existingState.Effective{{.PascalName}}.Value{{$type}}() == newState.{{.PascalName}}.Value{{$type}}() {
newState.{{.PascalName}} = existingState.{{.PascalName}}
}
{{end}}
{{end}}
{{end}}
{{- end}}
{{- end}}
{{- end}}
}

{{end}}
Expand Down

0 comments on commit ddc10d2

Please sign in to comment.