From 294bc6c2413f2f9b6a814b25edde735b85bb4d47 Mon Sep 17 00:00:00 2001 From: Andrew Mason Date: Tue, 19 Oct 2021 07:00:14 -0400 Subject: [PATCH] [vtctldclient] fix newlines in codegen template Before, this would put all imports on the same line, which of course breaks the Go parser. Signed-off-by: Andrew Mason --- go/vt/vtctl/vtctldclient/codegen/template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/vt/vtctl/vtctldclient/codegen/template.go b/go/vt/vtctl/vtctldclient/codegen/template.go index e9b7441460b..fbfd6ef6e7d 100644 --- a/go/vt/vtctl/vtctldclient/codegen/template.go +++ b/go/vt/vtctl/vtctldclient/codegen/template.go @@ -49,7 +49,7 @@ import ( {{ range .Imports -}} {{ if ne .Alias "" }}{{ .Alias }} {{ end }}"{{ .Path }}" - {{- end }} + {{ end -}} ) {{ range .Methods }} // {{ .Name }} is part of the vtctlservicepb.VtctldClient interface.