From ef53d1405517a2b1b03ca94c4e54301012e596dd Mon Sep 17 00:00:00 2001 From: John Beisley Date: Mon, 6 Jun 2022 18:05:41 +0100 Subject: [PATCH] Remove redundant blank lines in generated code. --- v2alpha/srv/srv.gotemplate | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/v2alpha/srv/srv.gotemplate b/v2alpha/srv/srv.gotemplate index 16333d9..a0ecc96 100644 --- a/v2alpha/srv/srv.gotemplate +++ b/v2alpha/srv/srv.gotemplate @@ -7,7 +7,6 @@ import ( {{quote .Alias}} {{.Path}} {{- end}} ) - {{range .SCPD.SortedActions}} {{- template "action" args "Action" . "Imps" $Imps}} {{end}} @@ -15,11 +14,11 @@ import ( {{define "action"}} 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 { -{{- template "args" args "Args" .Action.OutArgs "Imps" .Imps -}} +{{- template "args" args "Args" .Action.OutArgs "Imps" .Imps}} } {{- end}} @@ -27,5 +26,5 @@ type {{.Action.Name}}Response struct { {{- $Imps := .Imps}} {{- range .Args}} {{.Name}} {{index $Imps.TypeRefByTypeName .RelatedStateVariable.DataType}} -{{end}} +{{- end}} {{- end}}