Skip to content

Commit

Permalink
test : testing boolean if statement
Browse files Browse the repository at this point in the history
Signed-off-by: moualhi zine el abidine <[email protected]>
  • Loading branch information
muandane committed Apr 11, 2024
1 parent e28e864 commit 0fe61e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/utils/askQuestions.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func AskQuestions(config *config.Config) ([]string, error) {

row := lipgloss.JoinHorizontal(lipgloss.Center, name, emoji, desc)
commitTypeOptions[i] = huh.NewOption[string](row, fmt.Sprintf("%s %s", ct.Name, func() string {
if !config.NoEmoji {
if config.NoEmoji {
return ct.Emoji

Check warning on line 41 in pkg/utils/askQuestions.go

View check run for this annotation

Codecov / codecov/patch

pkg/utils/askQuestions.go#L39-L41

Added lines #L39 - L41 were not covered by tests
}
return ""

Check warning on line 43 in pkg/utils/askQuestions.go

View check run for this annotation

Codecov / codecov/patch

pkg/utils/askQuestions.go#L43

Added line #L43 was not covered by tests
Expand Down

0 comments on commit 0fe61e9

Please sign in to comment.