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 { func UsersReportCmd() *cobra.Command {
return &cobra.Command{ return &cobra.Command{
Use: "users", Use: "users",
Short: "A users report", Short: "A users report",
Args: cobra.NoArgs, Args: cobra.NoArgs,
Run: withApp(userReportCmdF), Run: withApp(userReportCmdF),
} }
} }
func ReportCmd() *cobra.Command { func ReportCmd() *cobra.Command {
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "report", Use: "report",
Short: "Generates reports on campaign information", Short: "Generates reports on campaign information",
} }

View file

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

View file

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