Fix format

This commit is contained in:
Miguel de la Cruz 2020-09-24 19:01:18 +02:00
parent 73f9a153d7
commit 7f0e5cd46e
3 changed files with 6 additions and 6 deletions

View file

@ -8,16 +8,16 @@ import (
func UsersReportCmd() *cobra.Command {
return &cobra.Command{
Use: "users",
Use: "users",
Short: "A users report",
Args: cobra.NoArgs,
Run: withApp(userReportCmdF),
Args: cobra.NoArgs,
Run: withApp(userReportCmdF),
}
}
func ReportCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "report",
Use: "report",
Short: "Generates reports on campaign information",
}

View file

@ -3,10 +3,10 @@ package model
import (
"bytes"
"fmt"
"os"
"strings"
"text/tabwriter"
"text/template"
"os"
"github.com/fatih/color"
)

View file

@ -16,7 +16,7 @@ func (c *Campaign) PrintUserReport() {
user := ticket.GithubAssignee
if user != "" {
if count, ok := userTickets[user]; ok {
userTickets[user] = count+1
userTickets[user] = count + 1
} else {
userTickets[user] = 1
}