Skip to content

Commit

Permalink
Remove redundant assignment
Browse files Browse the repository at this point in the history
Apply suggestions from code review

Co-authored-by: Miguel Piedrafita <[email protected]>
  • Loading branch information
ron-wolf and m1guelpf authored Jun 19, 2020
1 parent 2881292 commit 5d8a7b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/cli/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit 5d8a7b3

Please sign in to comment.