Skip to content

Commit

Permalink
Add missing comma after collaborator 🐛
Browse files Browse the repository at this point in the history
(if no `--verbose` flag is present)

Before:

	README ☑️, description ☑️, topics ☑️, 1 collaborator 👤community profile score: 33 💯

Now:

	README ☑️, description ☑️, topics ☑️, 1 collaborator 👤, community profile score: 33 💯
  • Loading branch information
nicokosi committed May 4, 2022
1 parent 1e205a7 commit c805e34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,13 +245,13 @@ func scanCollaborators(config config, repoWithOrg string) string {
if config.verbose {
message += fmt.Sprintf("\n - %d collaborator 👤", len(collaborators))
} else {
message += fmt.Sprintf("%d collaborator 👤", len(collaborators))
message += fmt.Sprintf("%d collaborator 👤, ", len(collaborators))
}
} else {
if config.verbose {
message += fmt.Sprintf("\n - %d collaborators 👥", len(collaborators))
} else {
message += fmt.Sprintf("%d collaborators 👥", len(collaborators))
message += fmt.Sprintf("%d collaborators 👥, ", len(collaborators))
}
}
return message
Expand Down
2 changes: 1 addition & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func TestScanCollaborators(t *testing.T) {

message := scanCollaborators(config{repo: "acme/buzz"}, "acme/buzz")

assert.Equal(t, "1 collaborator 👤", message)
assert.Equal(t, "1 collaborator 👤, ", message)
}

func TestScanCollaborators_Verbose(t *testing.T) {
Expand Down

0 comments on commit c805e34

Please sign in to comment.