Remove redundant blank lines in generated code.

This commit is contained in:
John Beisley 2022-06-06 18:05:41 +01:00
parent 5a32790ea4
commit ef53d14055

View File

@ -7,7 +7,6 @@ import (
{{quote .Alias}} {{.Path}} {{quote .Alias}} {{.Path}}
{{- end}} {{- end}}
) )
{{range .SCPD.SortedActions}} {{range .SCPD.SortedActions}}
{{- template "action" args "Action" . "Imps" $Imps}} {{- template "action" args "Action" . "Imps" $Imps}}
{{end}} {{end}}
@ -15,11 +14,11 @@ import (
{{define "action"}} {{define "action"}}
type {{.Action.Name}}Request struct { type {{.Action.Name}}Request struct {
{{- template "args" args "Args" .Action.InArgs "Imps" .Imps -}} {{- template "args" args "Args" .Action.InArgs "Imps" .Imps}}
} }
type {{.Action.Name}}Response struct { type {{.Action.Name}}Response struct {
{{- template "args" args "Args" .Action.OutArgs "Imps" .Imps -}} {{- template "args" args "Args" .Action.OutArgs "Imps" .Imps}}
} }
{{- end}} {{- end}}
@ -27,5 +26,5 @@ type {{.Action.Name}}Response struct {
{{- $Imps := .Imps}} {{- $Imps := .Imps}}
{{- range .Args}} {{- range .Args}}
{{.Name}} {{index $Imps.TypeRefByTypeName .RelatedStateVariable.DataType}} {{.Name}} {{index $Imps.TypeRefByTypeName .RelatedStateVariable.DataType}}
{{end}} {{- end}}
{{- end}} {{- end}}