From 5d8a7b3e3dda0c9a4886b93f99b82c67d29a4548 Mon Sep 17 00:00:00 2001 From: Ron Wolf Date: Fri, 19 Jun 2020 17:18:31 -0400 Subject: [PATCH] Remove redundant assignment Apply suggestions from code review Co-authored-by: Miguel Piedrafita --- pkg/cli/stats.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/cli/stats.go b/pkg/cli/stats.go index 6fa62b54..7ab15014 100644 --- a/pkg/cli/stats.go +++ b/pkg/cli/stats.go @@ -53,8 +53,7 @@ func stats(c *cli.Context) error { } if c.Bool("json") { - err := json.NewEncoder(os.Stdout).Encode(result) - return err + return json.NewEncoder(os.Stdout).Encode(result) } fmt.Printf("%s - %s\n", start.Format("Jan 01, 2006"), end.Format("Jan 01, 2006"))