From a20c5709bb4c022e0544602ec863f598e95d9113 Mon Sep 17 00:00:00 2001 From: Malachi Soord Date: Thu, 1 Jun 2023 09:56:30 +0200 Subject: [PATCH] Fix lint --- internal/git/git.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/git/git.go b/internal/git/git.go index 6e7ac48..f9e42a1 100644 --- a/internal/git/git.go +++ b/internal/git/git.go @@ -48,7 +48,11 @@ func createTemplateFile(contributors []string, templateFilePath string) error { defer templateFile.Close() - templateFile.WriteString("\n\n") + _, err = templateFile.WriteString("\n\n") + if err != nil { + return err + } + for _, contributor := range contributors { _, err := templateFile.WriteString(fmt.Sprintf("%s%s \n", CoAuthoredBy, contributor)) if err != nil {