diff --git a/commands/issue.go b/commands/issue.go index 67a8f42822516dbb87e1030abb8861399b24e2ef..91a8ff53306acad3ae0d121e4d696a5c794451bb 100644 --- a/commands/issue.go +++ b/commands/issue.go @@ -115,11 +115,8 @@ func writeIssueTitleAndBody(project *github.Project) (string, string, error) { # text is the title and the rest is the description. ` - if template := github.GetIssueTemplate(); template == "" { - message = fmt.Sprintf(message, "", project.Name) - } else { - message = fmt.Sprintf(message, template, project.Name) - } + template := github.GetIssueTemplate() + message = fmt.Sprintf(message, template, project.Name) editor, err := github.NewEditor("ISSUE", "issue", message) if err != nil {