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 {