From 7f0e5cd46eef62af2b1487421978fbede86cf6f7 Mon Sep 17 00:00:00 2001 From: Miguel de la Cruz Date: Thu, 24 Sep 2020 19:01:18 +0200 Subject: [PATCH] Fix format --- cmd/report.go | 8 ++++---- model/campaign.go | 2 +- model/campaign_reports.go | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/report.go b/cmd/report.go index c80a40c..55ed2b1 100644 --- a/cmd/report.go +++ b/cmd/report.go @@ -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", } diff --git a/model/campaign.go b/model/campaign.go index 6c7b30e..8250449 100644 --- a/model/campaign.go +++ b/model/campaign.go @@ -3,10 +3,10 @@ package model import ( "bytes" "fmt" + "os" "strings" "text/tabwriter" "text/template" - "os" "github.com/fatih/color" ) diff --git a/model/campaign_reports.go b/model/campaign_reports.go index 96cedda..06d2722 100644 --- a/model/campaign_reports.go +++ b/model/campaign_reports.go @@ -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 }