Skip to content

Commit

Permalink
impr(cli): update commit message to easier to understand
Browse files Browse the repository at this point in the history
  • Loading branch information
kamontat committed Sep 25, 2019
1 parent b533f0a commit 9c047ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions model/commit_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ func (c *CommitMessage) GetScope() string {

// GetMessage will return formatted commit message
func (c *CommitMessage) GetMessage() string {
scope := ""
if c.Scope != "" {
scope = "(" + c.GetScope() + ")"
scope := c.GetScope()
if scope != "" {
scope = "(" + scope + ")"
}

// Add message to commit message
Expand Down
2 changes: 1 addition & 1 deletion util/question.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func GenerateQuestionViaTypeConfig(title string, config *model.TypeConfig, listC
options := list.MakeList()

if !config.Require() {
header := model.Header{Type: "", Value: "Empty"}
header := model.Header{Type: "", Value: "go to next question"}
options = append(options, header.Format())
}

Expand Down

0 comments on commit 9c047ba

Please sign in to comment.