Skip to content

Commit

Permalink
Apply automatic formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkalderimis committed May 11, 2020
1 parent c9bee03 commit df7e662
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/issue_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import (
"bytes"
"fmt"
"log"
"path/filepath"
"runtime"
"strconv"
"strings"
"text/template"
"path/filepath"

"github.com/spf13/cobra"
gitlab "github.com/xanzy/go-gitlab"
Expand All @@ -35,7 +35,7 @@ var issueCreateCmd = &cobra.Command{
if err != nil {
log.Fatal(err)
}
templateName, err := cmd.Flags().GetString("template")
templateName, err := cmd.Flags().GetString("template")
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -98,8 +98,8 @@ func issueText(templateName string) (string, error) {
{{.CommentChar}} Write a message for this issue. The first block
{{.CommentChar}} of text is the title and the rest is the description.`

templateFile := filepath.Join("issue_templates", templateName)
templateFile += ".md"
templateFile := filepath.Join("issue_templates", templateName)
templateFile += ".md"
issueTmpl := lab.LoadGitLabTmpl(templateFile)

initMsg := "\n"
Expand Down

0 comments on commit df7e662

Please sign in to comment.