From 0dfba5c37802228bd2195e63f29fe5f7a3963597 Mon Sep 17 00:00:00 2001 From: Marin Atanasov Nikolov Date: Tue, 16 Feb 2016 13:02:45 +0200 Subject: [PATCH] gructl report: simplify report generation --- gructl/command/report_command.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gructl/command/report_command.go b/gructl/command/report_command.go index d4b1912..c929a2a 100644 --- a/gructl/command/report_command.go +++ b/gructl/command/report_command.go @@ -41,11 +41,7 @@ func execReportCommand(c *cli.Context) { if err != nil { displayError(err, 1) } - if _, ok := report[classifier.Value]; ok { - report[classifier.Value] += 1 - } else { - report[classifier.Value] = 1 - } + report[classifier.Value] += 1 } table := uitable.New()