From 50ce4e36c7d77f5af3b89e25f82ee114cb560895 Mon Sep 17 00:00:00 2001 From: Mat Ryer Date: Fri, 7 Jul 2017 20:04:25 +0100 Subject: [PATCH] Improved generated code --- package/moq/moq.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/moq/moq.go b/package/moq/moq.go index c94d275..c2339ce 100644 --- a/package/moq/moq.go +++ b/package/moq/moq.go @@ -265,7 +265,7 @@ type {{.InterfaceName}}Mock struct { {{ end }} // CallsTo tracks calls to the methods. CallsTo struct { -{{ range .Methods }} +{{- range .Methods }} lock{{.Name}} sync.Mutex // protects {{ .Name }} // {{ .Name }} holds details about calls to the {{.Name}} method. {{ .Name }} []struct {